private static void deleteFileOrDirectory( final File file ) {
        if ( !file.exists() ) { return; }

        if ( file.isDirectory() ) {
            for ( File child : file.listFiles() ) { deleteFileOrDirectory( child ); }
        }
        else {
            file.delete();
        }
    }