Delete a Triggered Send Definition verified

Learn how to delete (remove) a Triggered Send Definition in Salesforce Marketing Cloud (SFMC) with SSJS (server-side JavaScript). Code snippets include the WSProxy method.

WSProxy

var result = api.deleteItem("TriggeredSendDefinition", {
    CustomerKey: "S0M3-GU1D-K3Y-G03SR1G4T-H3R3"
});
<script runat="server">

    Platform.Load("core", "1");

    var api = new Script.Util.WSProxy();

    try {

        var result = api.deleteItem("TriggeredSendDefinition", {
            CustomerKey: "S0M3-GU1D-K3Y-G03SR1G4T-H3R3"
        });

        Write(Stringify(result));

    } catch (error) {

        Write(Stringify(error));

    }

</script>
{
    "Status": "OK",
    "RequestID": "S0M3-GU1D-K3Y-G03SR1G4T-H3R3",
    "Results": [
        {
            "Object": {
                "TriggeredSendType": "Continuous",
                "TriggeredSendStatus": "New",
                "Email": null,
                "List": null,
                "AutoAddSubscribers": false,
                "AutoUpdateSubscribers": false,
                "BatchInterval": 0,
                "BccEmail": null,
                "EmailSubject": null,
                "DynamicEmailSubject": null,
                "IsMultipart": false,
                "IsWrapped": false,
                "AllowedSlots": 0,
                "NewSlotTrigger": 0,
                "SendLimit": 0,
                "SendWindowOpen": "0001-01-01T00:00:00.000",
                "SendWindowClose": "0001-01-01T00:00:00.000",
                "SendWindowDelete": false,
                "RefreshContent": false,
                "ExclusionFilter": null,
                "Priority": null,
                "SendSourceCustomerKey": null,
                "ExclusionListCollection": null,
                "CCEmail": null,
                "SendSourceDataExtension": null,
                "IsAlwaysOn": false,
                "DisableOnEmailBuildError": false,
                "KeepExistingEmailSubject": false,
                "PreHeader": null,
                "ReplyToAddress": null,
                "ReplyToDisplayName": null,
                "DataSchemas": null,
                "TriggeredSendClass": "Standard",
                "TriggeredSendSubClass": "Standard",
                "TriggeredSendVersionID": 0,
                "RequestExpirationSeconds": 0,
                "OptionFlags": 0,
                "OptionFlagsUpdateMask": 0,
                "OptionVersion": 0,
                "CategoryID": 0,
                "SendClassification": null,
                "SenderProfile": null,
                "FromName": null,
                "FromAddress": null,
                "DeliveryProfile": null,
                "SourceAddressType": "DefaultPrivateIPAddress",
                "PrivateIP": null,
                "DomainType": "DefaultDomain",
                "PrivateDomain": null,
                "HeaderSalutationSource": "Default",
                "HeaderContentArea": null,
                "FooterSalutationSource": "Default",
                "FooterContentArea": null,
                "SuppressTracking": false,
                "IsSendLogging": false,
                "InteractionObjectID": null,
                "Name": null,
                "Description": null,
                "Keyword": null,
                "Client": null,
                "PartnerKey": null,
                "PartnerProperties": null,
                "CreatedDate": "0001-01-01T00:00:00.000",
                "ModifiedDate": null,
                "ID": 0,
                "ObjectID": null,
                "CustomerKey": "S0M3-GU1D-K3Y-G03SR1G4T-H3R3",
                "Owner": null,
                "CorrelationID": null,
                "ObjectState": null,
                "IsPlatformObject": false
            },
            "StatusCode": "OK",
            "StatusMessage": "TriggeredSendDefinition deleted",
            "OrdinalID": 0,
            "ErrorCode": 0,
            "RequestID": null,
            "ConversationID": null,
            "OverallStatusCode": null,
            "RequestType": "Synchronous",
            "ResultType": null,
            "ResultDetailXML": null
        }
    ]
}

Reference

Ressources and references related to the current methods.

Official documentation
SOAP object

Last Updated: