Use this UDA to delete all attachments from a list item.
|Long Description||Delete all item attachments, so that there are no duplicate files.|
|Support Info||Vadim Tabakman - Nintex Workflow - Delete All Attachments UDA - Vadim Tabakman|
Nintex Workflow 2013
SharePoint Server 2013
As I mentioned above, this UDA is limited to the current item the workflow is running on. But you could enhance this UDA with these options:
1. add parameters to handle List Name, Item ID and even a Site URL so that the UDA can delete attachments from any item in any site.
2. add error handling to the Call Web Service. This is always a good preventative option so that if any issue occur, you can capture the error and do something with it.
3. add logic to the For Each action, so that only a subset of the attachments are removed. eg. you may want to keep PDFs attached, and everything else removed.