Delete list of things in one go with API

Hello Bubble Experts!

I’m after some help deleting a list of things with an API - here’s the thing…

The list is visible in the user’s RG.

When I run a front end workflow to delete the list, it visually deletes all items together, however, there is a noticeable load time while this happens.

When I schedule an API workflow to delete the list, there’s no load time but it visually deletes them one at a time which, from the user’s point of view looks a bit naff in my opinion.

Can anyone suggest what might be the best way please?

Maybe 1 of these options (or the combination) will work:

  1. Use the frontend workflow to delete the first 10 items (10 or the most suitable number of course), use a backend workflow to delete the rest.
  2. Hide them untill they are deleted (add a field hidden to the data type, action 1: change a list of things + set hidden = true, action 2: delete them). Make sure to adjust the RG and set the search constraint to not show hidden.
1 Like

@gerbertdelangen I’m only deleting 10 :see_no_evil:
I like idea 2 though, will give it a go and see how it feels

Thanks for your response