Implement "purge" API call