You just drag it's icon to the trash. You can also click the eject key on the keyboard if you have one (my '15 MBP does not; likely because it doesn't have an optical drive anymore). In the file menu, you'll find an eject command which is also Command E.
So many ways to do a simple task.