private void deleteExternalStorageFiles(TrackFileFormat trackFileFormat){
  File dir=new File(FileUtils.getPath(trackFileFormat.getExtension()));
  File[] files=dir.listFiles();
  if (files == null) {
    return;
  }
  for (  File file : files) {
    file.delete();
  }
}

private void deleteExternalStorageFiles ( TrackFileFormat trackFileFormat ) { File dir = new File ( FileUtils . getPath ( trackFileFormat . getExtension ( ) ) ) ; File [ ] files = dir . listFiles ( ) ; if ( files == null ) { return ; } for ( File file : files ) { file . delete ( ) ; } }
deletes the external storage files .
