Automation - deletion of all records in the Budibase internal table #14830
Answered
by
mikesealey
mallipatil
asked this question in
Help
-
Context: Problem: Help required on how to delete all rows in Buildbase internal table (thru automation preferably) |
Beta Was this translation helpful? Give feedback.
Answered by
mikesealey
Oct 29, 2024
Replies: 1 comment 1 reply
-
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
mikesealey
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Set up an automation that uses a query rows step on the table in question. This will return an array (of rows).
Add a "Delete Row" step as the next action, and set it to a looping step. You can then pass in the array from the query-rows step.
The Delete Row action needs a row-id, but you will now see in the bindings the "Loop Outputs" bindings. - make sure to add
._id
to supplu the row_id to the delete-step.It might look a little bit like this, and will delete eery row in your table. Please be careful with automations like this for obvious reasons.