Delete information within linked DB

Hi I’m new to this and have a question that i can seem to figure out : How do I trigger to delete all the DB records that are linked.

Basically I have a data set named project and this will have a different data sets linked to it that contains actions, now when I delete the project entry I want to also delete the action related to that project. (the actions are a separate data set not a field list within the project data set)

I use inverse linking to link the data sets

Thank you

Hi there, @dan1_m1… if the actions are linked to a project by a field in the actions data type that has a Field type of Project, all you need to do during the delete workflow is search for all actions where the linked project is the project that is being deleted and delete those actions… then, delete the project itself. Does that make sense?

Best…
Mike

Thank you very much
How are you doing the search, is it within the workflow of the button?
I was tinging to do somersetting similar but I cannot find search function within the workflow options

Yes, it is in the workflow for the button. When the button is clicked, look for the Data (Things) >> Delete a list of things.. option. The Type of things will be Actions, and the List to delete is where you will Do a search for the actions that are linked to the project that is being deleted.

Best…
Mike

1 Like

Thank you very much mikeloc
This worked perfectly, it was very simple the hard part is for me to get use with the commands and were to find them.
Your help is much appreciated

Happy to help, @dan1_m1, and if you haven’t done the tutorials, I highly recommend them; they are a great way to the hang of the basics in Bubble.

Best…
Mike

1 Like