- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-16-2022 04:56 AM
what are the different ways to delete multiple records of a table at once with out script
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-16-2022 05:12 AM - edited ‎12-16-2022 05:14 AM
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.
Thanks and Regards,
Saurabh Gupta
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-16-2022 05:04 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-16-2022 05:05 AM
without script? how can we delete?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-16-2022 05:08 AM
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
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!
If I helped you with your case, please click the Thumb Icon and mark as Correct.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-16-2022 05:10 AM
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.