Unsubscribing a Subscription from a Topic
Unsubscribe a subscription from a topic in Notifications.
You can alternatively delete the subscription.
This task can't be performed using the Console.
Use the oci ons subscription unsubscribe command and required parameters to unsubscribe a subscription from a topic:
oci ons subscription unsubscribe --id <subscription_OCID> --protocol <subscription_type> --token <subscription_confirmation_token>
For a complete list of parameters and values for CLI commands, see the Command Line Reference for Notifications.
Run the GetUnsubscription operation to unsubscribe a subscription from a topic.
Using Email
These steps are for unsubscribing an email subscription. Every message sent out as email contains a link to unsubscribe from the related topic.
Using SMS
These steps are for unsubscribing an SMS subscription.
This method of unsubscribing is available from recipient phone numbers that use the +1 country code only. For a recipient phone number in another country code, delete the subscription instead. To find the subscription in the Console, search the Console for the subscription OCID. This OCID is included in the confirmation URL that was sent when the subscription was created.
unsubscribe <short-topic-id>
<short-topic-id> is the short code of the topic that the SMS subscription was added to. The short code is used to identify the topic in messages sent to SMS subscriptions. Each short code contains six case-insensitive alphanumeric characters.