End any current conversation on an SMS response from an MO user. Use this AMPscript function for MobileConnect. You cannot use this function with conversation-based templates, including Double Opt-In or Info Capture. Becase this function always returns a true value, don't use this function as part of a decision-making workflow.

EndSmsConversation(1, 2)

1stringRequiredShort code used for SMS communication
2stringRequiredThe mobile number value used to end the conversation. You can use MOBILE_NUMBER to pass in the value as necessary.

During a conversation between the MT user and the MO user, this example will end the conversation.