# 用控制台删除我的账户

**URL:** <https://meta.discourse.org/t/delete-my-account-with-the-console/82450>\
**Category:** Product Support\
**Created:** [2018 年3 月 7 日 21:04 UTC](https://meta.discourse.org/t/delete-my-account-with-the-console/82450 "2018-03-07T21:04:32Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

作者： ![neil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil/32/102150_2.png) [@neil](https://meta.discourse.org/u/neil)\
发布日期： [2018 年3 月 8 日 16:15 UTC](https://meta.discourse.org/t/delete-my-account-with-the-console/82450/3 "2018-03-08T16:15:34Z")

</div>

Yes that command will do it. If you want the system user to do it:

```plaintext
UserDestroyer.new(Discourse.system_user).destroy(User.find_by_username('...'), delete_posts: true)

```

---

_[View the full topic](https://meta.discourse.org/t/delete-my-account-with-the-console/82450)._
