Add purgeall helper method