How do I delete a item in a backend workflow?

Hi all,

A little knew to Bubble and I have a question but in all honestly I am not sure if it can be done.

So I have a form inside a RG in the frontend that collects data, A lot of the information is on multiple choice cards. I am saving the results based on someone clicking on a card and then saving the results to the question in a custom state. On selecting the save button the information is saved into the the DB.

I have conditions that highlight if the card is selected on clicking the card:

  1. On saving the information to the custom state
  2. When the information is saved into the database

This is done in case the user needs to double back and make changes.

My problem
I have purposely chosen to save the information to a custom state instead of directly into the database for UX purposes. I now want to delete an entry on clicking a card in the backend, easy enough to do in the frontend.

But cannot work out how to do this.

I have tried adding a delete thing at the end of the backend and also I have a new backend workflow that focuses on deleting the item that is selected in the backend but nothing works.

Current set up

On click I set the custom state (list)

On clicking save the backend workflow is scheduled.

Backend workflow: Add to database

Delete backend workflow

Where am I going wrong. BTW adding to the database is fine I just want to remove from the database.

You have a ton of conditions, so I’d first recommend getting a simple delete with no conditions working before attempting to delete with conditions attached.

Then all you need to do is workflow action to delete thing and the thing to delete is the parameter value of ‘ThingToDelete’…

Hi @boston85719 I tried this, this is the very first thing I done and nothing worked. I can delete on the front end no worries, even if I copy and paste the same workflow in the backend nothing works unfortunately,.

You can’t delete a file you can’t see. Did you check your privacy rules?

@randomanon yeah I have checked everything. I literally have no idea why it’s not working because it’s logically sound and works in the front end.

This topic was automatically closed after 70 days. New replies are no longer allowed.