Hello Paul4Rita15,
Thank you for visiting Apple Support Communities.
It sounds like you've inserted a data CD or DVD into your iMac, but it wont eject.
You can find some helpful troubleshooting tips in the "Doesn't eject discs or discs eject slowly" section of Get help with the slot-loading SuperDrive on your Mac computer.
Start with step 4 below if you've already tried ejecting the disc using Finder, the eject key on your keyboard, and by dragging the disc icon to the trash.
- If the drive ejects discs slowly or appears to be struggling, insert and eject a single disc several times. Check the disc to see if it has a label or other material stuck to the disc that increases the thickness. Remove the label if possible.
- If the disc will not eject, try pressing the eject key on the keyboard. Some older keyboards may use the F12 key to eject discs.
- If the disc will not eject, try dragging the disc icon to the trash.
- If the disc will still not eject, try holding down the trackpad or mouse button after restarting the computer. The Superdrive should attempt to eject the disc.
- If the disc continues not to eject, reset the System Management Controller (SMC) and try steps 1-4 again.
- If the disc still does not eject, contact Apple or an Apple Authorized Service Provider, or make an appointment with an Apple Retail Store for additional assistance.
Best Regards.