def perform_destroy(self, instance):
        auth = get_user_auth(self.request)
        node = self.get_node()
        pointer = self.get_object()
        try:
            node.rm_pointer(pointer, auth=auth)
        except __HOLE__ as err:  # pointer doesn't belong to node
            raise NotFound(err.message)
        node.save()
dataset/ETHPy150Open CenterForOpenScience/osf.io/api/nodes/views.py/NodeLinksDetail.perform_destroy