DeleteKeyword
Deletes an existing keyword from a specified Salesforce Marketing Cloud account. Removing a keyword prevents further inbound Short Message Service (SMS) messages from being associated with the corresponding campaign or automation.
Delete Keyword By Id
Deletes a keyword on an account given a keyword Id.
EXECUTE DeleteKeyword KeywordId = 'alm5LXNSSktGMGluRznRb1Rb1R5MDZFQTo4Njow'
Delete Keyword By Longcode
Deletes a keyword on an account given a keyword and long code.
EXECUTE DeleteKeyword LongCode = '5550003232', Keyword = 'TEST'
Delete Keyword By Shortcode
Deletes a keyword on an account given a keyword, short code, and country code.
EXECUTE DeleteKeyword ShortCode = '89239', Keyword = 'TEST', CountryCode = 'US'
Input
| Name | Type | Required | Description |
| KeywordId | String | False | Specifies the encoded identifier (Id) of the keyword that is to be deleted. This system-generated value uniquely identifies the keyword configuration within Salesforce Marketing Cloud and ensures that the correct keyword record is targeted for deletion. |
| Keyword | String | False | Specifies the keyword that is to be deleted from the associated long or short code. Keywords act as trigger words that subscribers text to participate in programs or manage subscriptions. Deleting a keyword removes its ability to process inbound messages. |
| LongCode | String | False | Specifies the long code that is associated with the keyword being deleted. A long code is a standard ten-digit number that supports two-way Short Message Service (SMS) communication for localized or low-volume campaigns. |
| ShortCode | String | False | Specifies the short code that is associated with the keyword being deleted. A short code is a five- or six-digit number that supports high-volume SMS programs. Either a long code or short code must be provided to identify the correct keyword configuration. |
| CountryCode | String | False | Specifies the two-letter country code that identifies the country in which the short code is registered. This parameter ensures that deletion requests are processed under the correct country-level messaging compliance settings. |
Result Set Columns
| Name | Type | Description |
| Status | String | Returns the operational status of the keyword after the delete operation completes. This output confirms whether the deletion succeeded or if further action is required. |