Remove all API code