azbrowse icon indicating copy to clipboard operation
azbrowse copied to clipboard

Support delete all

Open jjcollinge opened this issue 3 years ago • 3 comments

When navigating to an item that has lots of items you wish to delete but where you don't want to delete the parent i.e. you might want to delete all resources in a CosmosDB container without deleting the container itself, we could add a "Delete All" feature that deletes all items at that level or even deletes all items that matches the search term to allow more selective deletes.

jjcollinge avatar Apr 21 '21 07:04 jjcollinge

Really like this idea, maybe would need to pair with some "Are you REALLY sure?" style dialogue.

lawrencegripper avatar Apr 21 '21 12:04 lawrencegripper

Oooh, I like this!

Respecting the filter sounds cool. It might also be worth thinking about how this works with the "load more..." behaviour that Cosmos and some other expanders have. E.g. if there's a "load more..." item, should Delete All only delete what's currently in the list? Or should it delete everything?

stuartleeks avatar Apr 21 '21 14:04 stuartleeks

hmm that's an interesting one @stuartleeks. I'd think the real value in a delete all feature would be to delete much larger sets of items than just what can be rendered on screen - maybe like @lawrencegripper suggest we pop up a dialogue saying "Deleting x items, are you REALLLLLLLY sure?". This might mean we can't add each item individually to the pending delete set as I believe that has a size limit based on screen size too?

jjcollinge avatar Apr 27 '21 07:04 jjcollinge