code: def delete(method, hmc, uri, uri_parms, logon_required):
          
          try:
              metrics_context = hmc.lookup_by_uri(uri)
          except KeyError:
              raise InvalidResourceError(method, uri)
          hmc.metrics_contexts.remove(metrics_context.oid)
docs: Operation: Delete Metrics Context.