[otrs] Delete some tickets

1,271 views
Skip to first unread message

Personal Técnico

unread,
Sep 22, 2016, 8:51:58 AM9/22/16
to ot...@lists.otrs.org
Hi,

I'm running OTRS 5. For testing purposes, I created some tickets that,
now, I would like to delete. How can I remove them? Directly from database?

Thanks.
---------------------------------------------------------------------
OTRS mailing list: otrs - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/otrs
To unsubscribe: http://lists.otrs.org/mailman/listinfo/otrs

Smulsky, David

unread,
Sep 22, 2016, 8:57:09 AM9/22/16
to tecn...@caos.uab.es, User questions and discussions about OTRS.
Make a new queue (or use the Junk queue that comes out of the box), then create a Generic Agent to select and Delete all of the tickets in that queue either as a scheduled event or one-time run.

Sujeeva Tissaarachchi

unread,
Sep 23, 2016, 2:54:56 AM9/23/16
to tecn...@caos.uab.es, User questions and discussions about OTRS.
Hi,

You need to connect to your database (default MySQL) and issue a delete command

DELETE FROM ticket
DELETE FROM ticket_history
DELETE FROM article
DELETE FROM article_plain

Above deletes all tickets in the system. Otherwise use the where clause
 
Best Regards,
Sujeeva Tissaarachchi
 



From: Personal Técnico <tecn...@caos.uab.es>
To: ot...@lists.otrs.org
Sent: Thursday, 22 September 2016, 18:21
Subject: [otrs] Delete some tickets

Renee B

unread,
Sep 23, 2016, 4:27:13 AM9/23/16
to ot...@lists.otrs.org
Hi,

please do not change values (update, delete, ...) in the database! Please use the scripts shipped with OTRS or the GenericAgent.
Using OTRS scripts or the GenericAgent handles everthing: Update/delete the cache, delete information that belong to the ticket.
(eg the SQL statements below do not delete the links between tickets etc.)

Kind regards,
Renée


Am 23.09.2016 um 08:54 schrieb Sujeeva Tissaarachchi:
Hi,
You need to connect to your database (default MySQL) and issue a delete command
DELETE FROM ticket
DELETE FROM ticket_history
DELETE FROM article
DELETE FROM article_plain

Above deletes all tickets in the system. Otherwise use the where clause
 Best Regards,
Sujeeva Tissaarachchi 

      From: Personal Técnico <tecn...@caos.uab.es>
 To: ot...@lists.otrs.org 
 Sent: Thursday, 22 September 2016, 18:21
 Subject: [otrs] Delete some tickets
   
Hi,

I'm running OTRS 5. For testing purposes, I created some tickets that, 
now, I would like to delete. How can I remove them? Directly from database?

Thanks.
---------------------------------------------------------------------
OTRS mailing list: otrs - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/otrs
To unsubscribe: http://lists.otrs.org/mailman/listinfo/otrs


   


---------------------------------------------------------------------
OTRS mailing list: otrs - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/otrs
To unsubscribe: http://lists.otrs.org/mailman/listinfo/otrs



-- 
Perl / OTRS development: http://perl-services.de
OTRS AddOn repository: http://opar.perl-services.de
Reply all
Reply to author
Forward
0 new messages