Deleting files

Is there a way to delete files that have been uploaded to storage? When uploading a new image to a record it's replacing the metadata but don't know what happens to the previous file. Don't want to fill up the storage with old files.

I will probably create a table purely for saving the file metadata and then saving the corresponding ID for that file in other tables so that I can have a record of the files saved somewhere if there's no way to query the storage.
Other
18 replies