How do I delete my number from iMessage on send and receive from my iMac?
First make sure that iMessage is the active application, i.e. the word iMessage shows on the top left in your menu bar.
Then press cmd+, to access the preferences.

This works for most apps, in your question you demonstrate this for Firefox.