Deleting multiple tickets

stevelucas
Kilo Expert

Hi,

I have a situation where I was testing knowledge base and I have over 8000 tickets I want to delete.

Is there an easy way to do this rather than 100 at a time.

 

Thanks

 

Steve

1 ACCEPTED SOLUTION

Or, if you just want to clear out the whole table, do that in the Tables & Columns module, select your table, and then delete all records underneath the picker.


View solution in original post

5 REPLIES 5

Mike Allen
Mega Sage

Or, if you just want to clear out the whole table, do that in the Tables & Columns module, select your table, and then delete all records underneath the picker.


Thanks Mike



This will work…



Regards



Steve Lucas


2nd Line Support Team Leader


Smart421 smart solutions for the 21st Century


Part of the KCOM Group


Anurag Tripathi
Mega Patron
Mega Patron

Hi Steve,



This should help, run this in background script or a on demand job



function deleteComputerRecords(){


var rec = new GlideRecord('your_table');


rec.addQuery('created_by',<get the user id>); //&& OR any other condition that works


rec.deleteMultiple();




Also check this


delete records faster based on condition


-Anurag