You can do this from a customer's profile. Click Customers > Customer List > search for the customer and click their name.
Click an 'x' next to the type of messages they no longer want to receive: Marketing emails, Transactional emails, or Marketing SMS.
After clicking an x, a circular arrow can will appear, and can be clicked to resubscribe the customer later on.