code: def del_reference(self, source, target, **kwargs):
          
          rc = api.get_tool("reference_catalog")
          uid = api.get_uid(target)
          rc.deleteReference(source, uid, self.relationship)
          # unlink the version of the reference
          self.link_version(source, target)
docs: Remove existing reference