Skip to main content
Nintex Community Menu Bar
Solved

Delete Folder in Library

  • January 20, 2022
  • 2 replies
  • 73 views

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!

Best answer by sumitdeJedi

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=office.14)

 

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

2 replies

sumitdeJedi
Nintex Employee
Forum|alt.badge.img+9
  • Nintex Employee
  • Answer
  • January 21, 2022

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=office.14)

 

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


  • Author
  • January 24, 2022

Thank you very much! It works!