Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jacksonpchen/5b06690f5e38f25ee410f77dc99863b2 to your computer and use it in GitHub Desktop.
Save jacksonpchen/5b06690f5e38f25ee410f77dc99863b2 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<s:Header>
<fueloauth xmlns="http://exacttarget.com">[access_token_goes_here]</fueloauth>
<a:Action s:mustUnderstand="1">Delete</a:Action>
<a:MessageID>urn:uuid:d5c8c2ee-384e-4492-af18-b01e0d438b62</a:MessageID>
<a:ReplyTo>
<a:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:Address>
</a:ReplyTo>
<a:To s:mustUnderstand="1">https://[unique_key_for_installed_package].soap.marketingcloudapis.com/Service.asmx</a:To>
</s:Header>
<s:Body xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<DeleteRequest xmlns="http://exacttarget.com/wsdl/partnerAPI">
<Options />
<Objects xsi:type="DataExtension">
<PartnerKey xsi:nil="true" />
<ObjectID xsi:nil="true" />
<CustomerKey>[data_extension_external_key]</CustomerKey>
<Fields>
<Field>
<ObjectID>[data_extension_field]</ObjectID>
</Field>
</Fields>
</Objects>
</DeleteRequest>
</s:Body>
</s:Envelope>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment