Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to delete a member from a list? #300

Closed
gregblass opened this issue Jun 5, 2020 · 5 comments
Closed

How to delete a member from a list? #300

gregblass opened this issue Jun 5, 2020 · 5 comments

Comments

@gregblass
Copy link

Hey there!

I'm not sure if this changed recently in the MailChimp API, but sending a delete request when removing a subscriber from a list seems to just archived them: https://mailchimp.com/developer/reference/lists/list-members/

The last tab there says 'actions' - 'delete permanent' - however I'm having trouble mapping that to a gibbon request:

POST /lists/{list_id}/members/{subscriber_hash}/actions/delete-permanent

How would that look?

@amro
Copy link
Owner

amro commented Jun 6, 2020

Edit: I looked at their doc and actually I think they did it sensibly? What have you tried? Hyphens map to underscores, and HTTP verbs map to the verbs in the read me 1 to 1.

@gregblass
Copy link
Author

gregblass commented Jun 6, 2020 via email

@amro
Copy link
Owner

amro commented Jun 6, 2020

Gotcha. Does .actions.delete_permanent.create() work?

@ahaverty
Copy link

@amro @gregblass
I can confirm that .actions.delete_permanent.create
permanently deletes. Glad this issue was here, that would have taken me awhile considering Mailchimp's api doc's still say to just send a DELETE 🤷
image

@amro
Copy link
Owner

amro commented Jun 25, 2020

Thanks for confirming!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants