remove commands from attributes