# Kan categorie niet wijzigen of verwijderen

**URL:** https://meta.discourse.org/t/cant-modify-or-delete-category/183498
**Category:** Support
**Created:** [17 maart 2021 om 09:08 UTC](https://meta.discourse.org/t/cant-modify-or-delete-category/183498 "2021-03-17T09:08:11Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![aymeric](https://avatars.discourse-cdn.com/v4/letter/a/5f8ce5/32.png) [@aymeric](https://meta.discourse.org/u/aymeric)
#### Post date: [17 maart 2021 om 09:08 UTC](https://meta.discourse.org/t/cant-modify-or-delete-category/183498/1 "2021-03-17T09:08:11Z")

</div>

Hello,  
I installed Discourse a few weeks ago for an association. The whole works well overall.  
I am an administrator and I have appointed other administrators and moderators. Another administrator created a category and subsequently renamed it.  
We want to edit the category, give it another name or delete it, but I get a 404 error every time.  
I launched a ./launcher rebuild app without success.  
Do you have an idea ?  
Thanks,  
Aymeric

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [17 maart 2021 om 10:14 UTC](https://meta.discourse.org/t/cant-modify-or-delete-category/183498/2 "2021-03-17T10:14:49Z")

</div>

Did they rename `uncategorized`?

---

<div class="post-metadata">

### Author: ![aymeric](https://avatars.discourse-cdn.com/v4/letter/a/5f8ce5/32.png) [@aymeric](https://meta.discourse.org/u/aymeric)
#### Post date: [17 maart 2021 om 10:39 UTC](https://meta.discourse.org/t/cant-modify-or-delete-category/183498/3 "2021-03-17T10:39:41Z")

</div>

No, it’s different name.

I saw somewhere a method to delete a subject from the server directly in SSH, could a similar method apply for categories?

[https://meta.discourse.org/t/how-can-i-delete-a-topic-permanently/138321/2](https://meta.discourse.org/t/how-can-i-delete-a-topic-permanently/138321/2)

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [17 maart 2021 om 13:39 UTC](https://meta.discourse.org/t/cant-modify-or-delete-category/183498/4 "2021-03-17T13:39:35Z")

</div>

I still think it’s uncategorized that now has a different name.

But yes you can do something like

```
   Category.find_by(name: "ffd").destroy!

```

---

<div class="post-metadata">

### Author: ![Benjamin\_D](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/benjamin_d/32/277831_2.png) [@Benjamin\_D](https://meta.discourse.org/u/Benjamin_D)
#### Post date: [17 maart 2021 om 16:33 UTC](https://meta.discourse.org/t/cant-modify-or-delete-category/183498/5 "2021-03-17T16:33:05Z")

</div>

I’m guessing some accent in the slug, I had to  
`./launcher enter app`  
then  
`rails c`  
and  
`c = Category.find_by(id: 'the_id')`  
(q)  
`c.update(slug: 'new-slug')`

exit and exit  
Modify Category page was then accessible

---

<div class="post-metadata">

### Author: ![aymeric](https://avatars.discourse-cdn.com/v4/letter/a/5f8ce5/32.png) [@aymeric](https://meta.discourse.org/u/aymeric)
#### Post date: [17 maart 2021 om 21:36 UTC](https://meta.discourse.org/t/cant-modify-or-delete-category/183498/6 "2021-03-17T21:36:18Z")

</div>

Hi, it work !!! Thanks @Benjamin_D, @pfaffman !  
I think problem is accent in slug. Problem will repeat when use accent in slug ?

 ![image](https://global.discourse-cdn.com/meta/original/3X/4/4/44902e3ddceaec3fa934a02fd9f66941fe0f7b26.png)

---

<div class="post-metadata">

### Author: ![Benjamin\_D](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/benjamin_d/32/277831_2.png) [@Benjamin\_D](https://meta.discourse.org/u/Benjamin_D)
#### Post date: [17 maart 2021 om 22:38 UTC](https://meta.discourse.org/t/cant-modify-or-delete-category/183498/7 "2021-03-17T22:38:44Z")

</div>

🤔 what is your `slug generation method` setting ?

---

<div class="post-metadata">

### Author: ![aymeric](https://avatars.discourse-cdn.com/v4/letter/a/5f8ce5/32.png) [@aymeric](https://meta.discourse.org/u/aymeric)
#### Post date: [17 maart 2021 om 22:49 UTC](https://meta.discourse.org/t/cant-modify-or-delete-category/183498/8 "2021-03-17T22:49:41Z")

</div>

It’s automatic when you assign a name on new category. I think he created category with “slug” name “pour améliorer la communication du site des adhérents du CA” and he rename after “communication vélivélo”.

---

<div class="post-metadata">

### Author: ![Benjamin\_D](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/benjamin_d/32/277831_2.png) [@Benjamin\_D](https://meta.discourse.org/u/Benjamin_D)
#### Post date: [17 maart 2021 om 23:02 UTC](https://meta.discourse.org/t/cant-modify-or-delete-category/183498/9 "2021-03-17T23:02:30Z")

</div>

I mean the parameter, it could be set to `ascii` or `encoded` (then something might not work, but I’m not really sure of the expected results and consequences of either one 😅)

---

<div class="post-metadata">

### Author: ![aymeric](https://avatars.discourse-cdn.com/v4/letter/a/5f8ce5/32.png) [@aymeric](https://meta.discourse.org/u/aymeric)
#### Post date: [18 maart 2021 om 22:22 UTC](https://meta.discourse.org/t/cant-modify-or-delete-category/183498/10 "2021-03-18T22:22:54Z")

</div>

I do not know at all. I don’t know where the parameter is. I was thinking of using UTF8.

---

<div class="post-metadata">

### Author: ![Benjamin\_D](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/benjamin_d/32/277831_2.png) [@Benjamin\_D](https://meta.discourse.org/u/Benjamin_D)
#### Post date: [19 maart 2021 om 07:39 UTC](https://meta.discourse.org/t/cant-modify-or-delete-category/183498/11 "2021-03-19T07:39:22Z")

</div>

It is there:  
`your.domain/admin/site_settings/category/all_results?filter=slug`

---

<div class="post-metadata">

### Author: ![aymeric](https://avatars.discourse-cdn.com/v4/letter/a/5f8ce5/32.png) [@aymeric](https://meta.discourse.org/u/aymeric)
#### Post date: [29 maart 2021 om 07:13 UTC](https://meta.discourse.org/t/cant-modify-or-delete-category/183498/12 "2021-03-29T07:13:30Z")

</div>

> [@Benjamin\_D](#):
>
> /admin/site\_settings/category/all\_results?filter=slug

Hi, it’s ASCII. I never modify this.

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [29 maart 2021 om 07:39 UTC](https://meta.discourse.org/t/cant-modify-or-delete-category/183498/13 "2021-03-29T07:39:25Z")

</div>

Try setting it to `encoded` and see if that allows you to edit the category.
