Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.

Delete folder using LiveCycle File utilities

Avatar

Level 2

Hi,

In my process I write documents to a local drive inside a folder and I need to delete the folder after the completion of the process. When I try to use the Delete module from the file utilities it fails to delete a folder and when I put the file path in the input variable it delete it.

All I want is to deleter the entire folder, any help will be appreciated.

3 Replies

Avatar

Level 4

Hi Sabdelza,

Is your target directory empty ?

If not, you first have to delete all the files and subfolders from it then only you can delete that directory.

Thanks

-

Abhinav

Avatar

Level 2

My target directory is not empty, it will have PDFs inside the it. So my process is the user will select the documents need to me merged together thru a web interface and I collect those documents and I create a folder and write those documents to a shared drive and I merge them together using Assembler. As soon as Assembler is done I need to delete this folder with the content inside it. 

Avatar

Level 10

Abhinav's  statement is right.

Create a loop to delete all documents and then attempt to delete the folder.

Nith