# Weird Category Behavior because it starts with a number

**URL:** <https://meta.discourse.org/t/weird-category-behavior-because-it-starts-with-a-number/134548>\
**Category:** Product Support\
**Created:** [27 november 2019 om 15:06 UTC](https://meta.discourse.org/t/weird-category-behavior-because-it-starts-with-a-number/134548 "2019-11-27T15:06:22Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![dax](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dax/32/244677_2.png) [@dax](https://meta.discourse.org/u/dax)\
**Post date:** [29 november 2019 om 17:42 UTC](https://meta.discourse.org/t/weird-category-behavior-because-it-starts-with-a-number/134548/8 "2019-11-29T17:42:25Z")

</div>

⚠ **Take a backup of your site before executing the commands!**

> [@Iceman](#):
>
> is there a way to “move” all Topics on a Category to another?

```plaintext
cd /var/discourse
./launcher enter app
rails c
Category.find_by_slug('STARTING-CATEGORY-SLUG').id
Category.find_by_slug('DESTINATION-CATEGORY-SLUG').id
exit

```

Change `STARTING-CATEGORY-SLUG` and `DESTINATION-CATEGORY-SLUG` with the slugs of the starting and destination categories. The results will be 2 IDs.

```plaintext
rake categories:move_topics[STARTING-CATEGORY-ID,DESTINATION-CATEGORY-ID]

```

for example

```plaintext
rake categories:move_topics[11,27]

```

> [@Iceman](#):
>
> you can’t delete a Category without accessing it

```plaintext
./launcher enter app 
rails c
c=Category.find(STARTING-CATEGORY-ID)
c.destroy

```

---

_[View the full topic](https://meta.discourse.org/t/weird-category-behavior-because-it-starts-with-a-number/134548)._
