Make purging more generic, unbreak purging on mobile cluster

Change-Id: I76e5c4218c1dec06673aa5121010875031c1a1e2