I've done several attempts to implement this. They have ended to trouble with the recursive nature of checking if specific unit should be captured or wiped - we can deduct if unit is capturable only via action enablers of the Capture action.
Possibility to use pseudo/internal actions in 3.3 should make this much easier.
Alexandro Ignatiev has requested action a bit different from "Wipe Units": https://www.hostedredmine.com/issues/924536