Skip to main content
Nintex Community Menu Bar
Solved

Delete Folder in Library

  • Jan 20, 2022 8:54 AM UTC
  • 2 replies
  • 100 views
  • Translate All

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

View original

2 replies

sumitdeJedi
Nintex Employee
Forum|alt.badge.img+9
  • Nintex Employee
  • Answer
  • Jan 21, 2022 11:34 AM UTC

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

Translate

  • Author
  • Jan 24, 2022 12:43 PM UTC

Thank you very much! It works!

Translate