This is an unusual bit of functionality, and one that likely wouldn’t work well in a QlikView server deployment, but there was a requirement for this in a recent project, so I had to figure out a way to do it.
Be careful when clicking this candy-like button.
Given that you have a single table (or single transaction table) behind your application with one field serving as a unique identifier, the macro behind the button is the following:
Effectively, it is taking the rows you have currently selected, flipping your selection around to everything that you don’t want to delete, then reducing the data by keeping the current possible values (remember that executing a macro also does a “clear all”). And there is no “undo” unless you close the application without saving.
The deletion only lasts until you reload the application, unless you find a clever way to output your remaining data and reference it back in the load script.