How to delete folder(contain some folder and file) from internal storage? Folder have some below tree.
folder |_________ C2 (folder) |________1 (fo
Check this out.
public void deleteRecursive(File fileOrDirectory) { if (fileOrDirectory.isDirectory()) { for (File child : fileOrDirectory.listFiles()) { deleteRecursive(child); } } fileOrDirectory.delete(); }
for explaination How to delete a whole folder and content?