In my application I have written the code to delete the directory from drive but when I inspect the delete function of File it doesn\'t delete the file. I have written some thin
The directory must be empty to delete it. If it's not empty, you need to delete it recursively with File.listFiles() and File.delete()