I'm trying to remove all subscribers from a suppression list, I have been able to get one in particular to be deleted, but I have not been able to do it for all of them. How could it be done? Thanks in advance

this is my code:

<script type="javascript" runat="server">
Platform.Load("core", "1");

var prox = new Script.Util.WSProxy();
var i;
var Subscribers = new Array();
var complexfilter = {
            Property:"Customer ID",

var Subscribers = Rows.Retrieve(complexfilter);
if(Subscribers.length > 0) {
      for (i = 0; i < Subscribers.length; i++) {
      var rows = Platform.Function.DeleteData('SupressionTest - 2044',['Customer ID'],[Subscribers[i]]);



1 Answer 1


This below will remove all subs from your suppression list;

<script runat="server">
var api = new Script.Util.WSProxy();
var action = "ClearData";
var props = {  
        CustomerKey: 'SupressionTest - 2044'
var opts = {};
var data = api.performItem("DataExtension", props, action, opts);

Assuming "SupressionTest - 2044" is your suppression list' Ext Key.

  • Hi Ali! Thanks for your answer! would this work with suppression list? I mean, I've seen some similar answers asking about auto suppression list. Thanks in advance!
    – MRT
    Jun 21 at 19:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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