code: def delete(method, hmc, uri, uri_parms, logon_required):
          
          try:
              adapter = hmc.lookup_by_uri(uri)
          except KeyError:
              raise InvalidResourceError(method, uri)
          cpc = adapter.manager.parent
          assert cpc.dpm_enabled
          adapter.manager.remove(adapter.oid)
docs: Operation: Delete Hipersocket (requires DPM mode).