Careful. If you remove the wrong drive, your VM will no longer boot. If you are worried, 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"