add a command to remove a given device