ntozier
I looked around a bit more and found some queries that can clear out attachments from tickets closed before a certain date, but keep the ticket itself. This worked well for both of our installations; I figured I'd let you know in case it is useful info for you.
DELETE FROM ost_file_chunk WHERE ost_file_chunk.file_id IN( SELECT DISTINCT ostt.file_id FROM ost_ticket ost, ost_thread osth, ost_ticket_status ots, ost_thread_entry oste, ost_attachment ostt, ost_file ostf WHERE ost.ticket_id = osth.object_id AND oste.thread_id = osth.id AND oste.id = ostt.object_id AND ostf.id = ostt.file_id AND ots.id = ost.status_id and ots.state not like '%open%' and ost.closed < 'yyyy-mm-dd')
DELETE FROM ost_file WHERE ost_file.id IN( SELECT DISTINCT ostt.file_id FROM ost_ticket ost, ost_thread osth, ost_ticket_status ots, ost_thread_entry oste, ost_attachment ostt WHERE ost.ticket_id = osth.object_id AND oste.thread_id = osth.id AND oste.id = ostt.object_id AND ots.id = ost.status_id and ots.state not like '%open%' and ost.closed < 'yyyy-mm-dd')
DELETE FROM ost_attachment WHERE ost_attachment.object_id IN( SELECT DISTINCT oste.id FROM ost_ticket ost, ost_thread osth, ost_ticket_status ots, ost_thread_entry oste WHERE ost.ticket_id = osth.object_id AND oste.thread_id = osth.id AND ots.id = ost.status_id and ots.state not like '%open%' and ost.closed < 'yyyy-mm-dd')
OPTIMIZE TABLE ost_attachment, ost_file_chunk, ost_file