what are the different ways to delete multiple records of a table at once with out script

Kevin68
Tera Expert

what are the different ways to delete multiple records of a table at once with out script

1 ACCEPTED SOLUTION

Hi,
You update more than 100 records at a time using Update All.
PFA.
For deletion I never hear this but in Tokyo we have data management.

SaurabhGupta_1-1671196449315.png

 

 

 

 

SaurabhGupta_0-1671196347925.png

 

 

 

 

 


Thanks and Regards,

Saurabh Gupta

View solution in original post

11 REPLIES 11

Sebas Di Loreto
Kilo Sage
Kilo Sage

@Kevin68 

This is an example when I had to delete multiple records on the awa_work_item table

 

var awa = new GlideRecord('awa_work_item');
awa.addEncodedQuery('document_table=incident');
awa.setLimit(40000);
awa.deleteMultiple();

 

 


If I helped you with your case, please click the Thumb Icon and mark as Correct.


without script? how can we delete?

@Kevin68 

My bad... I didn't pay attention to the "without script" 😉

You can delete without a script but you are limited to chunks of 100

 

SebastianDL_0-1671195978606.png

 

You select all 100 records on the page and then click on delete. Once that is done, you select the next 100 and keep going. It is fine for small amounts but if I have to delete 4000 I would be doing this 40 times... not fun!

 

SebastianDL_1-1671196036539.png

 


If I helped you with your case, please click the Thumb Icon and mark as Correct.


but there is a thing I forgot we can delete all 1000 records at one go but it will take time.

i couldn't recall it.