I'm not sure I understood your question.
If the file was saved into DB, deleting the register deletes the file. If the file was saved into file system, you need to delete the file.
If the file was saved into DB, deleting the register deletes the file. If the file was saved into file system, you need to delete the file.