- # validate the cred
- self.api.auth.check(cred, "remove")
- self.api.auth.verify_object_permission(hrn)
-
- # send the call to the right manager
- manager_base = 'sfa.managers'
- mgr_type = self.api.config.SFA_REGISTRY_TYPE
- manager_module = manager_base + ".registry_manager_%s" % mgr_type
- manager = __import__(manager_module, fromlist=[manager_base])
- return manager.remove(self.api, xrn, type, origin_hrn)