question: protected final void deleteDBFFDCFiles ( String directoryToDelete ) throws AdeException { try { final File dirToDelete = new File ( directoryToDelete ) ; String [ ] fileList = dirToDelete . list ( ) ; if ( fileList . length == 0 ) { dirToDelete . delete ( ) ; } else { for ( int i = 0 ; i < fileList . length ; i ++ ) { final File f = new File ( dirToDelete , fileList [ i ] ) ; if ( f . isDirectory ( ) ) { final String filePath = f . getPath ( ) ; deleteDBFFDCFiles ( filePath ) ; continue ; } f . delete ( ) ; } fileList = dirToDelete . list ( ) ; if ( fileList . length == 0 ) { dirToDelete . delete ( ) ; } } } catch ( Exception e ) { throw new AdeInternalException ( "Failed to delete the backed-up Ade DB directory" , e ) ; } }
target:  Deletes the backed-up DB directory. Note that a directory can be deleted only if there are no files in it