Be careful. If the wrong drive is removed, the VM will no longer boot. If you are concerned, clone the VM first before proceeding.
# Power off the VM.
# VirtualBox
→ click a VM
→ Settings
→ Storage
→ click on DVD device symbol
→ click on disk removal symbol
# VirtualBox will ask:
Are you sure you want to delete the optical drive?
You will not be able to insert any optical disks or ISO images or install the Guest Additions without it!4.
Click "Remove"