public static void deleteFile(@NonNull File file) {
    boolean deleted = file.delete();
    if (!deleted) {
      Log.w(LOG_TAG, "Could not delete file: " + file);
    }
  }
public static void deleteFile ( @ NonNull File file ) { boolean deleted = file . delete ( ) ; if ( ! deleted ) { Log . w ( LOG_TAG , "Could not delete file: " + file ) ; } }
Delete file.

@param file to delete.