# 如何删除 Autobot？

**URL:** https://meta.discourse.org/t/how-to-delete-autobot/74721
**Category:** Support
**Created:** [2017年十一月24日 05:14 UTC](https://meta.discourse.org/t/how-to-delete-autobot/74721 "2017-11-24T05:14:01Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [2017年十一月24日 05:14 UTC](https://meta.discourse.org/t/how-to-delete-autobot/74721/1 "2017-11-24T05:14:01Z")

</div>

今天我卸载了 Autobot 插件，但该插件创建的 Autobot 用户并未被删除。  
当我尝试手动删除该用户时，系统提示管理员和版主无法被删除。然而，针对 Autobot 用户，并没有撤销其管理员权限的选项。

有没有什么办法可以删除该 Autobot 用户及其所有相关帖子？

---

<div class="post-metadata">

### Author: ![schungx](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/schungx/32/70989_2.png) [@schungx](https://meta.discourse.org/u/schungx)
#### Post date: [2017年十一月24日 05:31 UTC](https://meta.discourse.org/t/how-to-delete-autobot/74721/3 "2017-11-24T05:31:04Z")

</div>

You Decepticon! We Autobots cannot be so easily defeated!

---

<div class="post-metadata">

### Author: ![MakaryGo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/makarygo/32/187426_2.png) [@MakaryGo](https://meta.discourse.org/u/MakaryGo)
#### Post date: [2017年十一月24日 06:40 UTC](https://meta.discourse.org/t/how-to-delete-autobot/74721/7 "2017-11-24T06:40:27Z")

</div>

Well, it’s no secret that I’m biased against the ~~apparent dangerous Skynet agent~~ discobot, sorry for the fuss. Also, I’d personally ask the author here:  
[https://meta.discourse.org/t/autobot-automatic-content-creator/71756](https://meta.discourse.org/t/autobot-automatic-content-creator/71756)

Also, it struck me that there seems to be no obvious way of _uninstalling_ a plugin.  
I mean, if I remove it’s line from `app.yml`, it wont be there after rebuild. But when I re-add it, all the previous settings and data will be there, so I guess they persist in the database? Is there a way to get rid of this residue?

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [2017年十一月24日 06:49 UTC](https://meta.discourse.org/t/how-to-delete-autobot/74721/8 "2017-11-24T06:49:09Z")

</div>

> [@MakaryGo](#):
>
> Is there a way to get rid of this residue?

Now That is exactly my Question! … Removing autobot user itself won’t have been that much of a concern if there were no posts left but when the bot had already spit over 300 redundant posts via RSS, removing seemed the only viable option!

---

<div class="post-metadata">

### Author: ![schungx](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/schungx/32/70989_2.png) [@schungx](https://meta.discourse.org/u/schungx)
#### Post date: [2017年十一月24日 08:05 UTC](https://meta.discourse.org/t/how-to-delete-autobot/74721/10 "2017-11-24T08:05:00Z")

</div>

I vaguely remember that if a user has more than [n] posts, he/she cannot be deleted?

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [2017年十一月24日 08:05 UTC](https://meta.discourse.org/t/how-to-delete-autobot/74721/11 "2017-11-24T08:05:43Z")

</div>

But there always is an option in the admin panel to delete all the posts by a user!

---

<div class="post-metadata">

### Author: ![MakaryGo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/makarygo/32/187426_2.png) [@MakaryGo](https://meta.discourse.org/u/MakaryGo)
#### Post date: [2017年十一月24日 08:11 UTC](https://meta.discourse.org/t/how-to-delete-autobot/74721/12 "2017-11-24T08:11:42Z")

</div>

You cannot revoke admin/moderator powers from any automatically generated user, it seems. Not form @discobot, not from @system, and apparently not from autobot as well.  
And you can’t delete all posts of admin nor moderator.

I have to admit, it is a really impressive disaster.

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [2017年十一月24日 08:15 UTC](https://meta.discourse.org/t/how-to-delete-autobot/74721/14 "2017-11-24T08:15:20Z")

</div>

Now I desperately want the Plugin dev to introduce some sorts of script to undo this disaster or else I’d have to start from scratch again or rather ask all my moderators to prepare a task force for deleting all the past posts created by the bot!

@vinothkannans I hope You can provide some help regarding it! 😔

---

<div class="post-metadata">

### Author: ![MakaryGo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/makarygo/32/187426_2.png) [@MakaryGo](https://meta.discourse.org/u/MakaryGo)
#### Post date: [2017年十一月24日 08:31 UTC](https://meta.discourse.org/t/how-to-delete-autobot/74721/15 "2017-11-24T08:31:57Z")

</div>

Okay, using some advanced search techniques and all sorts of IT voodoo i believe I found out how you can revoke admin for the bot…  
When you enter your Docker container by `./launcher enter app`, you can start Rails console by typing `rails c`.  
Now it seems that autobot creates user with id **-3** , so if we type this:  
`User.find(-3).update!(admin: false, moderator: false)`  
it _should_ un-admin the bot.

Just please, mind that I’m no programmer, and regardless the fact that it worked for me, it’s pure guessing.

---

<div class="post-metadata">

### Author: ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)
#### Post date: [2017年十一月24日 09:11 UTC](https://meta.discourse.org/t/how-to-delete-autobot/74721/16 "2017-11-24T09:11:42Z")

</div>

You could follow @MakaryGo’s instruction. It will fix your issue.

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [2017年十一月24日 10:58 UTC](https://meta.discourse.org/t/how-to-delete-autobot/74721/17 "2017-11-24T10:58:18Z")

</div>

Saved a ton of effort!

Thanks 😉

---

<div class="post-metadata">

### Author: ![MakaryGo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/makarygo/32/187426_2.png) [@MakaryGo](https://meta.discourse.org/u/MakaryGo)
#### Post date: [2017年十一月24日 10:59 UTC](https://meta.discourse.org/t/how-to-delete-autobot/74721/18 "2017-11-24T10:59:37Z")

</div>

I’m glad it worked!  
But it’s more a dirty hack than solution to an actuall problem…

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [2017年十一月24日 11:25 UTC](https://meta.discourse.org/t/how-to-delete-autobot/74721/19 "2017-11-24T11:25:10Z")

</div>

Still that saved a day! I Hope the devs can add some script so that the user is automatically revoked admin upon removal of plugin.

---

<div class="post-metadata">

### Author: ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)
#### Post date: [2017年十一月24日 11:37 UTC](https://meta.discourse.org/t/how-to-delete-autobot/74721/20 "2017-11-24T11:37:07Z")

</div>


