Created
September 8, 2025 04:07
-
-
Save katydorjee/e515f638fead79adaebf9fd98680ba30 to your computer and use it in GitHub Desktop.
SSJS to delete record from publication list
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 = "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