Detach cdrom remove or add iso while vm is running?

It seems neither detach or attach iso work . Am I missing something?

You can attach/detach a disk device, but not change the cdrom iso file.

Regards

I tried to detach device and got a error…