Skip to content

Automation - deletion of all records in the Budibase internal table #14830

Answered by mikesealey
mallipatil asked this question in Help
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mallipatil
Comment options

Answer selected by mikesealey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants