Delete a Triggered Send Definition

To delete a triggered send definition, use the sample code below as a model for creating your own API request. Marketing Cloud Engagement changes the external key and name of a triggered send definition after it is deleted. This change allows you to reuse deleted names and external keys for new triggered send definitions.

API requests that refer to a deleted triggered send definition always result in failure.

Note

Sample SOAP Envelope 

1<s:Envelope
2  xmlns:s="http://www.w3.org/2003/05/soap-envelope"
3  xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing"
4  xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
5  <s:Header>
6    <o:Security
7      s:mustUnderstand="1"
8      xmlns:o="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
9      <o:UsernameToken u:Id="uuid-c10e3bda-13ef-4868-bacd-6e760cd45cf2-1">
10        <o:Username>${#Project#S1:113903:UN}</o:Username>
11        <o:Password>${#Project#S1:113903:PW}</o:Password>
12      </o:UsernameToken>
13    </o:Security>
14  </s:Header>
15  <s:Body
16    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
17    xmlns:xsd="http://www.w3.org/2001/XMLSchema">
18    <DeleteRequest xmlns="http://exacttarget.com/wsdl/partnerAPI">
19      <Options />
20      <Objects xsi:type="TriggeredSendDefinition">
21        <PartnerKey xsi:nil="true" />
22        <ObjectID xsi:nil="true" />
23        <CustomerKey>ExampleTSDDelete</CustomerKey>
24      </Objects>
25    </DeleteRequest>
26  </s:Body>
27</s:Envelope>

Related Items