1

I want to delete a user's email from my list in MailChimp using the API or Gibbon. However, there's no documentation about this in Gibbon repo.

As of now, I can only delete the email from the MailChimp website.

aridlehoover
  • 3,139
  • 1
  • 26
  • 24
gbertl
  • 321
  • 2
  • 16

2 Answers2

2

Would unsubscribe help you?

gibbon.lists(list_id).members(lower_case_md5_hashed_email_address).update(body: { status: "unsubscribed" })

Based on your comment and the mailchimp docs try:

gibbon.lists(list_id).members(lower_case_md5_hashed_email_address).delete
Flo
  • 540
  • 6
  • 20
1

I'm using this code; it works (Rails 5 / Gibbon 3.2.0):

Gibbon::Request.lists(list_id).members(lower_case_md5_hashed_email_address).delete
Sprachprofi
  • 1,229
  • 12
  • 24