Expand my Community achievements bar.

SOLVED

Deleting a folder in a workflow

Avatar

Level 2

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

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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.

View solution in original post

2 Replies

Avatar

Community Advisor

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

Avatar

Correct answer by
Community Advisor

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.