# 如果我不知道用户是谁，如何注销？

**URL:** <https://meta.discourse.org/t/how-to-log-out-user-if-i-dont-know-them/145273>\
**Category:** Development\
**Created:** [2020 年3 月 23 日 17:20 UTC](https://meta.discourse.org/t/how-to-log-out-user-if-i-dont-know-them/145273 "2020-03-23T17:20:20Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

作者： ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)\
发布日期： [2020 年3 月 23 日 17:29 UTC](https://meta.discourse.org/t/how-to-log-out-user-if-i-dont-know-them/145273/2 "2020-03-23T17:29:54Z")

</div>

您可以挂钩一个 API 调用以自动登出 Discourse：

> **[Discourse API Docs](https://docs.discourse.org/#tag/Users/paths/~1admin~1users~1%7Bid%7D~1log_out/post)**

---

_[View the full topic](https://meta.discourse.org/t/how-to-log-out-user-if-i-dont-know-them/145273)._
