How to detach vmdk using vboxmanage cli

I have my sandbox created using vboxmanage cli tool which created vmdk file. I converted it from .vmdk to .vdi, as i wanted to compress it. then i attached this newly created .vdi file. Now i wa...