azbrowse
azbrowse copied to clipboard
Support delete all
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.
Really like this idea, maybe would need to pair with some "Are you REALLY sure?" style dialogue.
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?
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?