You are viewing limited content. For full access, please sign in.

Question

Question

Delete empty folders

asked on December 29, 2015 Show version history

I know there are different methods to delete empty folders within Workflow, though would it be possible to have the move entry activity work like the move pages activity where if the document the pages are being moved from becomes empty then the document would be deleted?

0 0

Answer

SELECTED ANSWER
replied on December 29, 2015

Hi Cristobal,

After your "Move Entry" activity, you can insert a "Delete Entry" activity targeting the moved entry's original Parent Folder. In the "Delete Entry" properties pane, check the "Only delete empty folders" check box. In the below example, I use "Find Entry", "Move Entry", and then delete the "Find Entry" Parent Folder only if the Parent Folder is empty:

 

You might want to put the "Delete Entry" activity inside a "Conditional Sequence" to make sure that only the folders you want to delete are deleted.

Let me know if this work for you!

1 0
replied on December 30, 2015

Alex,

That is what I have been doing in order to delete the parent folder for documents. I was wondering if in the future there was a way to merge the functionality of the three activities. If not I can continue to utilize this method.

1 0
replied on December 30, 2015

Hi Cristobal,

I will take that as a feature request and send it to development. In the meantime, if you do not want to add "Delete Entry" after every "Move Entry", you can just create a separate workflow that monitors every "Entry Moved" action:

You can even run the workflow on the entry's original folder (check box at the bottom). This is clearly a powerful workflow, so you should probably add many specific starting rule conditions, as well as conditions on the "Delete Entry" activity itself.

0 0

Replies

You are not allowed to reply in this post.
You are not allowed to follow up in this post.

Sign in to reply to this post.