question: private void deleteDirectoryRecurse ( Context context , File dir ) { if ( FileUtils . isDirectory ( dir ) ) { for ( File child : dir . listFiles ( ) ) { deleteDirectoryRecurse ( context , child ) ; } } if ( dir . exists ( ) ) { dir . delete ( ) ; FileUtils . updateMediaScanner ( context , Uri . fromFile ( dir ) ) ; } }
target:  Delete the directory recursively.