Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.

deleting a folder with files in it

Avatar

Former Community Member

Is it possible to do this with the  'delete' folder/file activity?

I have tried this and not been successful.

Is this possible or do I need to clean up the files and folders in the folder I want to delete before I can delete  the folder

using this activity?

Thanks

Carmen

1 Reply

Avatar

Former Community Member

I save files on a network share and just do a plain old FileService.deleteDirectory.  Maybe make sure you have a "\" as the last character in your directory path.