I noticed that ost_file_chunk was growing large.
Went about deleting as many old, closed tickets as possible. Noted that not only wasn't the table size growing smaller, BUT the number of records was not going down either.
Then I scanned records sequentially and noted that the sequence was unbroken, meaning again that records were never being deleted.
Next, I created a ticket and attached a file to it. I noted the new record in ost_file. The ticket was then deleted and observed that the records in ost_file was still there.
I was running 1.11 and just upgraded to v1.15.2, so this has been going on for a very long time. I also have to believe that my situation is not unique.
Can we get a patch and then a built-in utility to scan for and delete orphaned file attachment records. I see numerous threads with people having to run complex SQL statements to clean up these tables. This should be a built-in feature/utility IMO.