Deleting a folder in a workflow | Community
Skip to main content
October 28, 2022
Solved

Deleting a folder in a workflow

  • October 28, 2022
  • 2 replies
  • 943 views

We have some very basic workflows to publish and delete.

 

We have noticed that when you delete a folder with assets the assets are correctly sent through the workflow to be approved for deletion but the folder isn't.

 

Also, we can't even initiate the workflow on an empty folder.

 

So, overall, we can delete the contents of a folder by selecting the folder but not the folder itself.

 

Is there a way to do this by using workflows?

 

Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Lokesh_Vajrala

Yes, you should be able to delete the folder.

 

How are deleting the assets inside the folder in the workflow process step? 

  1. Are you iterating through the assets under the folder path and deleting them after deactivation? Add code to delete the folder at the end of the execution. 
  2. Are you deactivating the folder itself and then deleting it? I don't think of a reason why it wouldn't delete the folder. Check if there is any error printing in the logs.

2 replies

Saravanan_Dharmaraj
Community Advisor
Community Advisor
October 28, 2022

Is this the custom workflow? and Launcher is running for what nodeType? 

Lokesh_Vajrala
Community Advisor
Lokesh_VajralaCommunity AdvisorAccepted solution
Community Advisor
October 31, 2022

Yes, you should be able to delete the folder.

 

How are deleting the assets inside the folder in the workflow process step? 

  1. Are you iterating through the assets under the folder path and deleting them after deactivation? Add code to delete the folder at the end of the execution. 
  2. Are you deactivating the folder itself and then deleting it? I don't think of a reason why it wouldn't delete the folder. Check if there is any error printing in the logs.