如何使用 Mailchimp 的 API v3 "delete and remove"(而不是 "delete and archive")?

How to "delete and remove" (not "delete and archive") with Mailchimp's API v3?

mailchimp API docs关于删除地址说了这么多:

If you want to delete an address anyway, along with all its statistics, make a DELETE call to that address’s endpoint.

但是有两种方法可以使用 MailChimp 删除地址;您可以 "delete and remove" 或 "delete and archive"。 (更多内容在 non-api docs

我想从 API 中删除和删除,但看起来 API 的删除调用只执行删除和存档。

如何从 API 中指定删除方法?

另外,我说 API 默认情况下 "delete and archive" 是对的吗?

我正在使用 mailchimp-api-v3 npm 包,下面是我的代码的简化版本。

let allTheRequest = []

mailchimp.get({ path: '/search-members?query=' + "if_you_match_this_I_delete_you"}, function(err, data) {

    data.full_search.members.forEach(function (value) {

        allTheRequest.push({
            method:"delete", 
            path: '/lists/' + value.list_id + '/members/' + crypto.createHash('md5').update(value.email_address).digest('hex'),}
            )
    })

    mailchimp.batch(allTheRequest, function (err, results) {
        console.log('@results: ', results);
        // It all works, we get down here.
    })
});

原来永久删除地址的方法是使用具有以下路径的POST:

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

这是文档的 link:

https://developer.mailchimp.com/documentation/mailchimp/reference/lists/members/#%20

单击 "Delete" 旁边的 "Action"。