Page 1 of 1
Deleting attachments directory contents?
Posted: Thu Jul 17, 2014 3:43 am
by cwshubby
If I delete the contents of the Hesk attachments directory (except for the last 90 days) would this cause any problems?
It is getting a little large and killing backup space.
Re: Deleting attachments directory contents?
Posted: Fri Jul 18, 2014 1:45 am
by mkoch227
Klemen would know the answer better than anyone else here, but I don't see an issue, unless someone wants to grab an attachment from an old ticket, in which the attachment would no longer exist. But the help desk itself should function normally.
Re: Deleting attachments directory contents?
Posted: Fri Jul 18, 2014 2:07 pm
by Klemen
Just like Mike said - HESK will still function normally, but anyone tries to download a deleted attachment an error will show saying "This file has been deleted from the server and is no longer available for download"
Re: Deleting attachments directory contents?
Posted: Sat Jul 19, 2014 9:36 am
by alcazar
previous posts +
You should consider restricting the number and size of attachments.
cwshubby wrote:... It is getting a little large and killing backup space.
You dont do backups on the same space do you??
Backups should be never on the same storage device as the original files.
Re: Deleting attachments directory contents?
Posted: Thu Jul 24, 2014 1:21 am
by cwshubby
I have the limits set, but over a year it builds up. We get a lot of images from customers.
All backups are done offsite via FTP. The attachments directory makes it a pain to archive

Re: Deleting attachments directory contents?
Posted: Fri Jan 02, 2015 12:04 am
by J_E_F_F
Could an option be added to v2.6 that allows cleaning/deleting of attachments of resolved tickets? Perhaps in the SETTINGS tab. Ideally it would alter the SQL DB to remove the attachment info from the ticket as well, so there would not be a user option to attempt to download a missing file.
Re: Deleting attachments directory contents?
Posted: Wed Apr 04, 2018 3:57 pm
by cwshubby
Having an option to specify the days to keep attachments would be nice.
We use Hesk for a customer service KB and the attachments are used a lot.
We don't backup on the same drive and also backup off the site in multiple area.
Re: Deleting attachments directory contents?
Posted: Wed Apr 04, 2018 7:59 pm
by Klemen
For now you will need to manually delete the old attachments (or write a script/cron job to do that for you) because there is (still) no built-in way of doing this.