to commonly asked questions.

How do I disable messages on my laptop?

I would like to disable my messages and emails on my laptop since that is a work laptop, my text and email notifications keep popping up when others are using the laptop.

Open the Messages app on your computer then go to preferences (located under the word "Messages" in the menu bar next to the black apple in the top left of your screen.)

Now you can either uncheck "enable this account" if you'd like to quickly turn it back on sometime OR just Sign out completely. This will not remove your previous texts from the message app. Only prevent future ones from coming in.
This image is a theme.plist hack