Deleting a quote, purchase order, invoice or event used to leave its files behind: the PDF it produced and anything uploaded to it. Those files could no longer be deleted, because who may delete a file depends on the record it belongs to.
Now a record's files are deleted with it. Files left behind by records deleted before this change can be deleted by an administrator.