To remove a SIM card from a modem, gently press the installed SIM card into the modem until you hear a click. After you hear the click, the SIM card springs out far enough grip with your fingers and can be removed from the modem's SIM slot.
For SIM cards in trays, press the SIM tray key into the small hole next to the tray to remove the tray.