code: def delete(self, refobj):
          
          refobjinter = self.get_refobjinter()
          reference = refobjinter.get_reference(refobj)
          if reference:
              fullns = cmds.referenceQuery(reference, namespace=True)
              cmds.file(removeReference=True, referenceNode=reference)
          else:
              parentns = common.get_namespace(refobj)
              ns = cmds.getAttr("%s.namespace" % refobj)
              fullns = ":".join((parentns.rstrip(":"), ns.lstrip(":")))
          cmds.namespace(removeNamespace=fullns, deleteNamespaceContent=True)
docs: Delete the content of the given refobj
  
          :param refobj: the refobj that represents the content that should be deleted
          :type refobj: refobj
          :returns: None
          :rtype: None
          :raises: None