# 是否有办法更改或删除辅助电子邮件

**URL:** <https://meta.discourse.org/t/is-there-a-way-to-change-or-delete-the-secondary-email/162933>\
**Category:** Development\
**Created:** [2020 年9 月 3 日 14:39 UTC](https://meta.discourse.org/t/is-there-a-way-to-change-or-delete-the-secondary-email/162933 "2020-09-03T14:39:45Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

作者： ![mpemburn](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mpemburn/32/178585_2.png) [@mpemburn](https://meta.discourse.org/u/mpemburn)\
发布日期： [2020 年9 月 3 日 18:06 UTC](https://meta.discourse.org/t/is-there-a-way-to-change-or-delete-the-secondary-email/162933/3 "2020-09-03T18:06:52Z")

</div>

谢谢 Simon，

其实我早就知道这一点，但不知为何，我在用户资料中点错了“扳手”图标，导致没有显示删除选项。一旦找到正确的选项，我检查了一下，就找到了所需内容。我在 Postman 中测试过，成功了！

对应的 curl 命令如下：

```
curl --location --request DELETE 'https://[discourse_url]/u/[discourse_user_name]/preferences/email.json?email=[address_to_delete]' \
--header 'Api-Key: [your_api_key]' \
--header 'Api-Username: system' \
--header 'Content-Type: application/json' 

```

**更新补充** ：别忘了对邮箱地址进行 URL 编码。如果不这样做，API 虽然会返回 “success”: “OK”，但实际上不会删除该地址。

Mark

---

_[View the full topic](https://meta.discourse.org/t/is-there-a-way-to-change-or-delete-the-secondary-email/162933)._
