Add purgeKey helper method