When a player is intructed to purge a component, that component is purged even if its ability was only partially resolved.
This is the official Living Rules Reference wording under Purge.
LRR v2.0 (base game / Prophecy of Kings); specific card abilities may override the general rule.