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

Thanks, Shiva


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

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

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.