delete old api commands