pablo.estrada
06/05/2023, 4:29 PMdefinition directory {
relation organization: organization
}
definition file {
relation dir: directory
}
I I call the delete relationship with this payload:
req := v1.DeleteRelationshipsRequest{
RelationshipFilter: &v1.RelationshipFilter{
ResourceType: "directory",
OptionalResourceId: dirID,
},
}
Where the dirID
is given on our delete request of our app.
Do I still need to call delete relationship for all the files that had a relation to the directory on the dir
relation? Or is this handled by spicedb?