B4J Question How to delete A parent folder

Ishmael

Member
I want to delete a folder which contains bunch of files but file.delete says the folder must be empty.

The parent folder Tree can sometimes contain child folders upto 6 levels.

Example
Parent Folder A contains B
B contains folder C D E and some files.
C contains folder FG and some files
F contains files
G contains folder X YZ and files

The folders are generated dynamically with different structures

Is there a way to delete all folders at once without opening all individual folders and clearing them first? Like Deleting Parent Folder A which will delete everything
 
Top