Remove obsolete and unused commands.