code: def delete(self, fnames=None):
          
          if fnames is None:
              fnames = self.get_selected_filenames()
          multiple = len(fnames) > 1
          yes_to_all = None
          for fname in fnames:
              if fname == self.proxymodel.path_list[0]:
                  self.sig_delete_project.emit()
              else:
                  yes_to_all = self.delete_file(fname, multiple, yes_to_all)
                  if yes_to_all is not None and not yes_to_all:
                      # Canceled
                      break
docs: Delete files