How to handle the deleteAction for the file-upload field

I'm looking to ensure that when the user deletes a file attached to a posting, that the corresponding uploaded file is also removed. There doesn't seem to be anything in the documentation on this, and chatGPT is hallucinating with an incorrect method that does not exist. I am handling deleting the associated files when the post is deleted by overriding the boot/deleted method, but am unclear on how to handle it at just the file level.
Was this page helpful?