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