Skip to content

Instantly share code, notes, and snippets.

@zuzannamj
Last active October 17, 2019 13:10
Show Gist options
  • Save zuzannamj/eb78161fa87240da5b03fa55ed2711e4 to your computer and use it in GitHub Desktop.
Save zuzannamj/eb78161fa87240da5b03fa55ed2711e4 to your computer and use it in GitHub Desktop.
Delete a Subscriber for a List using WSProxy / SSJS
<script runat="server">
Platform.Load("core","1.1.1");
var subkey = "" //provide Sunscriber Key
var email = "" //provide Email Address
var prox = new Script.Util.WSProxy();
var sub = {
SubscriberKey: subkey,
EmailAddress: email,
Lists: [{
ID: "" //provide List ID
}]
};
var resp = prox.deleteItem("Subscriber", sub);
Write("Response: " + Stringify(resp));
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment