cancel
Showing results for 
Search instead for 
Did you mean: 

Delete orphan folders with Unity API

Brendan_Altman2
Star Contributor
Star Contributor

Is there a way to delete orphan folders with the Unity API or is that only accomplished in the thick client with scheudling tasks 

1 ACCEPTED ANSWER

Aki_Daiguji
Star Contributor
Star Contributor

Hi Brendan,

In Workflow, before you perform the action to auto-folder a document to another folder, you can run an action to get the folder that the active document is in, and put that  folder information into a PropertyBag. Then after the document is moved to another folder, run another action to delete the folder that is specified in the PropertyBag. This will delete orphaned folders that has been orphaned by this Workflow action.

View answer in original post

6 REPLIES 6

is deleting the folder an action or must this be done via calling an external service to execute the api to delete the folder?

Hi Nathan -

There isn't a native Workflow action to delete a folder. You'd need to call out to the API to delete it.

Regards,
-jeff