lcha
Workflow Hero

Best way to delete all list items from a child site

Jump to solution

I need to delete all list items in a child site from the parent site. The list is very small less than 20 items.

Need your suggestion on the best way to do it.

1.  Delete this list and re-create a new one?

2.  Use nintex 'delete multiple items' action. This action requires the list id i need to get dynamically

3. Call the sharepoint web service lists.asmx. I didn't find a method to delete all items.

Thanks

 

 

0 Kudos
Reply
2 Replies
emha
Automation Master
Automation Master

Re: Best way to delete all list items from a child site

Jump to solution

use delete multiple items action, but instead of defining the acvtion with a query builder use rather CAML query. it allows you to supply list name dynamically

 

i.jpg

View solution in original post

0 Kudos
Reply
lcha
Workflow Hero

Re: Best way to delete all list items from a child site

Jump to solution

Thanks. I works.  i don't need to specify the list guid.

0 Kudos
Reply