Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save katydorjee/e515f638fead79adaebf9fd98680ba30 to your computer and use it in GitHub Desktop.

Select an option

Save katydorjee/e515f638fead79adaebf9fd98680ba30 to your computer and use it in GitHub Desktop.
SSJS to delete record from publication list
<script runat="server">
Platform.Load("core","1.1.1");
var subkey = "SubscriberKey"
var email = "[email protected]"
var api = new Script.Util.WSProxy();
var sub = [
{
SubscriberKey: subkey,
EmailAddress: email,
Lists: [{
ID: "123"
}]
},
{
SubscriberKey: subkey2,
EmailAddress: email2,
Lists: [{
ID: "123"
}]
}
]
var resp = api.deleteBatch("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