jan_mueller
Novice

Delete Folder in Library

Jump to solution

We use Nintex Wokflow for SharePoint 2016.

I tried to delete a folder with a Workflow. But I can´t find an action which works.

Action "Delete Multiple Items" --> Selection "Created less than Date" --> Only files will be deleted.

Action "Delete Item" --> Query with Folder ID --> Workflow Error --> Message: "Element not found"

Is there any other opertunity to delete Folders with Nintex Workflow? Maybe a Webservice?
Thanks a lot!

0 Kudos
Reply
2 Replies
sumitdeJedi
Nintex Employee
Nintex Employee

Re: Delete Folder in Library

Jump to solution

Hi @jan_mueller 

 

Yes, it seems the delete item action doesn't have this option, but instead you could use a webservice:

 

https://docs.microsoft.com/en-us/previous-versions/office/developer/sharepoint-2010/bb249818(v=offic...

 

and examples of how how to do that are here: https://sridharu.blogspot.com/2008/10/createdelete-folers-using-listsasmx-web.html

 

I hope that helps,

 

Sumit

0 Kudos
Reply
jan_mueller
Novice

Re: Delete Folder in Library

Jump to solution

Thank you very much! It works!

0 Kudos
Reply