Remove unused commands.