osTicket/osTicket-1.7 — pull request #1 by greezybacon (2012-03-21 01:16:19+00:00)
Title: Review - Add deleteOrphans() utility to the File class to remove unused files

Also add a cron job to perform the task on demand
Change the implementation for Ticket::deleteAttachments to call this method
after simply removing all entries from the %ticket_attachment table