[SOLVED] Erase a ticket / erase an attachment

Moderator: crythias

Locked
HervE
Znuny wizard
Posts: 391
Joined: 03 Jan 2011, 17:15
Znuny Version: 3.3.8
Location: France

[SOLVED] Erase a ticket / erase an attachment

Post by HervE »

Hello,

Is there a way to erase (physically) a ticket from OTRS?

Is there a way to erase (physically) an attachment from a ticket in OTRS (considering attached files usually take many Mb)?

Regards,
HervE
Last edited by HervE on 05 Jan 2011, 10:20, edited 1 time in total.
OTRS 3.3.8 - Windows 7 - IIS7 - SQL Server - Firefox 30
Mothra
Znuny expert
Posts: 189
Joined: 26 Oct 2010, 15:04
Znuny Version: 3.2.11

Re: Erase a ticket / erase an attachment

Post by Mothra »

HervE wrote: Is there a way to erase (physically) a ticket from OTRS?
Yes, you can do this via GenericAgent.
HervE wrote: Is there a way to erase (physically) an attachment from a ticket in OTRS (considering attached files usually take many Mb)?
I've tried this before and it's a tricky business. In the database, attachments are related to tickets via the article table to the article_attachment table. Off the top of my head, I can't remember if there are more relationships to take into consideration, but it involves an awful lot of unpicking, and you may end up killing the relational integrity of your database.

You can easily switch attachment storage from the database to the filesystem (see the admin manual for details). Once the articles are on the filesystem, you can more easily allocate additional storage space to accommodate them.
OTRS 3.2.11 on Centos 6.4 with MySQL 5.0. Agents and internal customers authenticate via Active Directory.
HervE
Znuny wizard
Posts: 391
Joined: 03 Jan 2011, 17:15
Znuny Version: 3.3.8
Location: France

Re: Erase a ticket / erase an attachment

Post by HervE »

Thank you for your answer.
Mothra wrote:
HervE wrote: Is there a way to erase (physically) a ticket from OTRS?
Yes, you can do this via GenericAgent.
How?
Sorry but I am new, and I don't know about "GenericAgent".

HervE
OTRS 3.3.8 - Windows 7 - IIS7 - SQL Server - Firefox 30
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Erase a ticket / erase an attachment

Post by jojo »

Please read Admin manual first: http://doc.otrs.org/2.4/en/html/x1471.html
"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
HervE
Znuny wizard
Posts: 391
Joined: 03 Jan 2011, 17:15
Znuny Version: 3.3.8
Location: France

Re: Erase a ticket / erase an attachment

Post by HervE »

Thank you.
I suceeded.

Hervé
OTRS 3.3.8 - Windows 7 - IIS7 - SQL Server - Firefox 30
melksog
Znuny newbie
Posts: 6
Joined: 24 May 2011, 18:37
Znuny Version: 3.0.7
Real Name: Melquisedec Uscategui
Company: Información y Tecnología S.A.

Re: Erase a ticket / erase an attachment

Post by melksog »

HervE wrote:Thank you.
I suceeded.

Hervé
Hi, could you help me, i really can't erase it, how could I set the generic agent?

Thanks
HervE
Znuny wizard
Posts: 391
Joined: 03 Jan 2011, 17:15
Znuny Version: 3.3.8
Location: France

Re: [SOLVED] Erase a ticket / erase an attachment

Post by HervE »

Hi,

Go to ADMIN menu, then GenericAgent (in System Administration section).

Add Job, then make the appropriate Ticket Filter.
Then under Ticket Commands, set Delete Tickets to Yes. (Be careful to what you are doing!)

Regards,
HervE
OTRS 3.3.8 - Windows 7 - IIS7 - SQL Server - Firefox 30
melksog
Znuny newbie
Posts: 6
Joined: 24 May 2011, 18:37
Znuny Version: 3.0.7
Real Name: Melquisedec Uscategui
Company: Información y Tecnología S.A.

Re: [SOLVED] Erase a ticket / erase an attachment

Post by melksog »

Thanks, I success.

Regards
Locked