Delete a segment - best way?

1,294 views
Skip to first unread message

Sergei Sokolov

unread,
Jun 16, 2011, 2:00:18 PM6/16/11
to MailChimp API Discuss
hi all!

Got a big list, too big to browse via web interface, and it goes on
growing. However 50% list members are of lo quality - never opened an
email!

What's the best way to delete them all?

Coudn't find a way in the web interface: bulk actions can only be
applied to manually picked contacts, or to all visible.

Didn't find any suitable api functions to accomplish the task in 1-2
calls. Can only see a way to cycle through each contact, one by one,
getting their info, and maybe deleting.


Any bright ideas on how to do a call like
deleteLazyDogs(api key, list id, conditions=array( 'date is
before'=>'2011-01-01', 'rating is less than'=>2)
?

Kind regards,
Serge.

jesse

unread,
Jun 17, 2011, 11:14:33 AM6/17/11
to MailChimp API Discuss
Use the Export API's list() method to retrieve the segment:

http://apidocs.mailchimp.com/export/

The use listBatchUnsubscribe with whatever parameters you feel
appropriate to unsub/delete the members in large chunks:

http://apidocs.mailchimp.com/1.3/listbatchunsubscribe.func.php


jesse

Sergei Sokolov

unread,
Jun 17, 2011, 11:37:53 PM6/17/11
to MailChimp API Discuss
Thank you, Jesse,

could you please confirm that when a user is unsubscribed+deleted
by listBatchUnsubscribe with delete=true
it is still possible to resubscribe her back later via
listBatchSubscribe
and there will be no additional requirements to confirm or an opt-in
letter for her?

Cause I believed that unsubscribing (no matter if it was also deleted)
an address keeps it in MailChimp's vault forever,
and does not allow resubscribtion.


Kind regards,
Sergei S.

jesse

unread,
Jun 20, 2011, 11:32:10 AM6/20/11
to MailChimp API Discuss
If you delete someone we delete all record of them on that list and
there are no restrictions on how you put them back on the list.

If you unsubscribe them you can't use listBatchSubscribe to push them
back onto the list, though you can with listSubscribe. This is what
you should be doing.

In either case, forcing people back on a list is playing with fire, so
be careful.


jesse
Reply all
Reply to author
Forward
0 new messages