# Can't remove a dangling category created by the Babble plugin

**URL:** https://meta.discourse.org/t/cant-remove-a-dangling-category-created-by-the-babble-plugin/56533
**Category:** Support
**Created:** [2017年一月28日 21:42 UTC](https://meta.discourse.org/t/cant-remove-a-dangling-category-created-by-the-babble-plugin/56533 "2017-01-28T21:42:04Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Alex\_Rabolin](https://avatars.discourse-cdn.com/v4/letter/a/db5fbb/32.png) [@Alex\_Rabolin](https://meta.discourse.org/u/Alex_Rabolin)
#### Post date: [2017年一月28日 21:42 UTC](https://meta.discourse.org/t/cant-remove-a-dangling-category-created-by-the-babble-plugin/56533/1 "2017-01-28T21:42:05Z")

</div>

Hi guys, we have a problem with a category who was created by babble plugin.  
She’s locked and no way for delete her.  
Have you got an idea please ?

> [@babyfooter](#):
>
> @gdpelican, we removed Babble plugin for now, but we’re not able to remove ‘Chat’ category, as it is locked, and says that there is a post count = 1 (default category post, couldn’t be removed). Do you have an idea?
> 
> Thx!

 ![](https://global.discourse-cdn.com/meta/original/3X/8/4/84657bd2e15d42ed3b44b06cd14d689b6ef3cd8d.png)

Thank’s , Alex (France) .

---

<div class="post-metadata">

### Author: ![FlyingSwitzerland](https://avatars.discourse-cdn.com/v4/letter/f/96bed5/32.png) [@FlyingSwitzerland](https://meta.discourse.org/u/FlyingSwitzerland)
#### Post date: [2017年一月28日 21:44 UTC](https://meta.discourse.org/t/cant-remove-a-dangling-category-created-by-the-babble-plugin/56533/2 "2017-01-28T21:44:12Z")

</div>

Yeah we have the same issue too 😉

(Nous avons le même soucis également… je pense qu’il n’est pas possible d’y remédier…)

---

<div class="post-metadata">

### Author: ![JagWaugh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagwaugh/32/69335_2.png) [@JagWaugh](https://meta.discourse.org/u/JagWaugh)
#### Post date: [2017年一月28日 22:28 UTC](https://meta.discourse.org/t/cant-remove-a-dangling-category-created-by-the-babble-plugin/56533/3 "2017-01-28T22:28:40Z")

</div>

Can’t you just hide the category?

You can delete from the CLI

first, look at /categories.json with a browser to get the id # of the category.

If the category id is 27, then, in the CLI:

```
/launcher
rails c
Topic.where(category_id: 27).destroy_all
then
Category.where(id: 27).destroy_all

```

---

<div class="post-metadata">

### Author: ![Alex\_Rabolin](https://avatars.discourse-cdn.com/v4/letter/a/db5fbb/32.png) [@Alex\_Rabolin](https://meta.discourse.org/u/Alex_Rabolin)
#### Post date: [2017年一月28日 23:02 UTC](https://meta.discourse.org/t/cant-remove-a-dangling-category-created-by-the-babble-plugin/56533/4 "2017-01-28T23:02:53Z")

</div>

Thank you very much Andrew, it’s work fine, problem solved @FlyingSwitzerland 🙂

---

<div class="post-metadata">

### Author: ![Alex\_Rabolin](https://avatars.discourse-cdn.com/v4/letter/a/db5fbb/32.png) [@Alex\_Rabolin](https://meta.discourse.org/u/Alex_Rabolin)
#### Post date: [2017年一月29日 00:22 UTC](https://meta.discourse.org/t/cant-remove-a-dangling-category-created-by-the-babble-plugin/56533/5 "2017-01-29T00:22:59Z")

</div>

And for delate the admin off babble : chattykattie

User.find\_by(username: “chattykattie”).destroy

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [2019年四月25日 23:54 UTC](https://meta.discourse.org/t/cant-remove-a-dangling-category-created-by-the-babble-plugin/56533/6 "2019-04-25T23:54:30Z")

</div>



---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [2019年四月26日 08:43 UTC](https://meta.discourse.org/t/cant-remove-a-dangling-category-created-by-the-babble-plugin/56533/7 "2019-04-26T08:43:16Z")

</div>


