How to delete folder(contain some folder and file) from internal storage? Folder have some below tree.
folder |_________ C2 (folder) |________1 (fo
You can't delete root folder if sub folder contains any files. So for that you have to first delete each of sub files and then you will able to remove the folder.
Your code is valid, I just update like:
boolean deleted = mypath.delete();
ie. mypath is your File Directory.
mypath