remove API pieces