Skip to content

Commit

Permalink
chore: instructions to delete all tuples in a store
Browse files Browse the repository at this point in the history
Added instructions on how to delete all tuples in a store
  • Loading branch information
aaguiarz authored Sep 21, 2023
1 parent 7d96969 commit f858799
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,14 @@ fga tuple **delete** <user> <relation> <object> --store-id=<store-id>
{}
```

If you want to delete all the tuples in a store, you can use the following code:

```
fga tuple read | jq -r '.tuples[] | "fga tuple delete \(.key.user) \(.key.relation) \(.key.object)"' > delete-tuples.sh`
chmod +x delete-tuples.sh
./delete-tuples.sh
```

##### Read Relationship Tuples

###### Command
Expand Down

0 comments on commit f858799

Please sign in to comment.