How I can delete all attachments from all closed Ticket?

Moderator: crythias

Locked
brwork
Znuny newbie
Posts: 9
Joined: 18 Sep 2012, 13:08
Znuny Version: 3.1.2
Real Name: BR Shrinet
Company: Wataniya

How I can delete all attachments from all closed Ticket?

Post by brwork »

Dear All,

I hope everyone is doing great Job.
I just wanted to check if I want to delete all attachments from all closed Ticket older than 30 days, how I can do? Any sql query or something I can schedule to carry out this task on weekly bases.

Thanks a lot.
BR Shrinet
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: How I can delete all attachments from all closed Ticket?

Post by jojo »

there is a feature add on for this from OTRS.com

altertivly you can use Filesystem Storage for the attachments and create a shell script for deleting files
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
brwork
Znuny newbie
Posts: 9
Joined: 18 Sep 2012, 13:08
Znuny Version: 3.1.2
Real Name: BR Shrinet
Company: Wataniya

Re: How I can delete all attachments from all closed Ticket?

Post by brwork »

Hi jojo,

Thank you helping me again. Is this add on free or paid one ? And i am running OTRS on windows system so how i can run a shell script ? How i can store attachments on filestem and how i know what i need to delete ? Now proabably you will be thinking abt my all these questions But there is no such information in OTRS admin pdf abt this and all. i am relly sorry but a procedure for doing this correct will helps a lots of users here.

Thanks a lot for you prompt and kind supprt.

BR Shrinet
EXG133
Znuny expert
Posts: 217
Joined: 06 Aug 2012, 18:12
Znuny Version: 3.1.7 & 4.04

Re: How I can delete all attachments from all closed Ticket?

Post by EXG133 »

brwork wrote:Hi jojo,

Thank you helping me again. Is this add on free or paid one ?
You need a support contract for those addons. Depending on the contract you get 2, 5 or 10 addons included in the support contract price.
brwork wrote: And i am running OTRS on windows system so how i can run a shell script ?
Scheduled task.
brwork wrote:How i can store attachments on filestem and how i know what i need to delete ? Now proabably you will be thinking abt my all these questions But there is no such information in OTRS admin pdf abt this and all. i am relly sorry but a procedure for doing this correct will helps a lots of users here.
http://doc.otrs.org/3.1/en/html/performance-tuning.html
Locked