How remove a category locked


(Alex Rabolin) #1

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 ?

Thank’s , Alex (France) .


#2

Yeah we have the same issue too :wink:

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


(Andrew Waugh) #3

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

Babble - A Chat Plugin [ARCHIVE]
(Alex Rabolin) #4

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


(Alex Rabolin) #5

And for delate the admin off babble : chattykattie

User.find_by(username: “chattykattie”).destroy