[KM] DELETE All Variables Except Those on Keep List

There's probably a better solution for you than this. At the end of each of your macros, use a "Set Variable to Text" action and set each variable used in the macro to %Delete%. Well, each variable whose value you don't need to keep.

Something like this:

Or you can use this macro: