# Cannot delete or edit categories

**URL:** https://meta.discourse.org/t/cannot-delete-or-edit-categories/212415
**Category:** Support
**Created:** [December 17, 2021, 8:30am UTC](https://meta.discourse.org/t/cannot-delete-or-edit-categories/212415 "2021-12-17T08:30:54Z")
**Posts on this page:** 1
**Showing post:** 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: [December 17, 2021, 9:58am UTC](https://meta.discourse.org/t/cannot-delete-or-edit-categories/212415/2 "2021-12-17T09:58:25Z")

</div>

If you can get to rails then you can do something like

```plaintext
/var/discourse/launcher enter app
rails c
c=Category.find(123)
c.name='safe name'
c.save

```

You’ll need to type a q to get out of the viewer after the find. 123 is the category I’d.

---

_[View the full topic](https://meta.discourse.org/t/cannot-delete-or-edit-categories/212415)._
