Delete open files

Is there a way to delete open files using one or all of the methods? Maybe there is an internal setting or a package that can achieve it.

  1. Right clicking (context menu) an open file in the sidebar and choosing ‘delete file’ command
  2. Right clicking (context menu) on a tab and choosing ‘delete file’ command
  3. A toolbar command

In general, is there a package for file actions/operations (delete, rename, etc.) that can be accessed from the context menu of tab or of the open files in sidebar?