Solved

Delete Folder in Library

  • 20 January 2022
  • 2 replies
  • 14 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!

icon

Best answer by sumitdeJedi 21 January 2022, 12:34

View original

2 replies

Badge +9

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

Thank you very much! It works!

Reply