code: def _delete_plot(cls, plot_id):
          
          plot = cls._plots.get(plot_id)
          if plot is None:
              return
          plot.cleanup()
          del cls._plots[plot_id]
docs: Deletes registered plots and calls Plot.cleanup