clean old api remains