From f858799811ba88738fe9078b03ce6a45fde2614d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Aguiar?= Date: Thu, 21 Sep 2023 09:21:31 -0300 Subject: [PATCH] chore: instructions to delete all tuples in a store Added instructions on how to delete all tuples in a store --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 3234619..f487944 100644 --- a/README.md +++ b/README.md @@ -594,6 +594,14 @@ fga tuple **delete** --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