That can be very frustrating! I'm sorry you're experiencing unwanted messages.
Opt-in and opt-out features in messaging are recognised good industry practices and something we strongly recommend at Sinch. Our developer documentation details how to set opt-in & opt-out using our messaging APIs:
Conversation API, opt-in and opt-out setting documentation
Standalone SMS, opt-in and opt-out setting documentation.
... View more