-1

Can please help me to how to remove a particular record from publication using scripting(ssjs/api ampscript)

Thanks, Shiva

3

You will need to call the Subscriber object using SOAP API.

If you're doing this from a CloudPage, WSProxy will be the easiest solution:

<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>

If you don't know how to find the List ID of your Publication List, look at this thread (thank you Markus).

Not the answer you're looking for? Browse other questions tagged or ask your own question.