Last active
October 17, 2019 13:10
-
-
Save zuzannamj/eb78161fa87240da5b03fa55ed2711e4 to your computer and use it in GitHub Desktop.
Delete a Subscriber for a List using WSProxy / SSJS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <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