Delete Current Thing Breaks Workflow

Hi! Appreciate any feedback on how to fix this or if this is a quirk with Bubble.

I have a workflow as shown below. Everything works the way you expect a workflow to run (step 1 → step 2 → step 3 –> etc). The issue I’m encountering is that when I add the Delete Workspace action to step 8 and press the button, it decides to delete the workspace right away before even getting to step 1. Then it goes follow the steps until step 8 where it redoes the action and then ends the workflow.

This is Step 8.

Any idea on how to fix this? Is this just a bug?

This is happening because when the button click it simultaneously run every step in workflow.

You can use step of previous action so it wait untile the previous step runs.

Like on step 8, you can add a condition when the step 6 & 7 are like a list is zero or something else.

2 Likes

Hey! @jose4 This happens because Bubble tries to resolve the thing you’re deleting immediately. A simple fix is to either store the workspace in a custom state and delete that at the end, or move the delete into a separate backend workflow scheduled after all other steps.

1 Like