Tomek
06/10/2022, 8:14 AMnamespace | object_id | relation | userset_namespace | userset_object_id
--------------+--------------------------------------+-------------+-------------------+--------------------------
aminal | 1234 | owner | user | 4321
--------------+--------------------------------------+-------------+-------------------+--------------------------
aminal | 1234 | owner | user | 8765
Let's say I want to remove all relationships where animal's resource id
is 1234
. My request via REST to SpiceDB looks like this.
wget -qO- --post-data '{"relationshipFilter":{"resourceType": "animal", "optionalResourceId":"1234" }}' --header="Authorization: Bearer []" http://localhost:8443/v1/relationship/delete
From what I expected from this request, is that it removes all records from the db table snippet I introduced you. Unfortunately nothing happened and the records are still present. Could you help me out and try to figure out what is wrong with my understanding of relationship removal?