# Impossible de supprimer le sujet sans catégorie

**URL:** <https://meta.discourse.org/t/cant-delete-topic-without-category/367811>\
**Category:** Product Support\
**Created:** [Mai 27, 2025, 6:19 UTC](https://meta.discourse.org/t/cant-delete-topic-without-category/367811 "2025-05-27T18:19:10Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![steinjer](https://avatars.discourse-cdn.com/v4/letter/s/e274bd/32.png) [@steinjer](https://meta.discourse.org/u/steinjer)\
**Post date:** [Mai 27, 2025, 7:50 UTC](https://meta.discourse.org/t/cant-delete-topic-without-category/367811/6 "2025-05-27T19:50:51Z")

</div>

> [@pfaffman](#):
>
> `Topic.where(category_id: 4).update_all(category_id: c.id)`

Cela ne semble pas fonctionner :

```plaintext
discourse(prod)> Topic.where(category_id: 4).update_all(category_id: 20)
=> 0
discourse(prod)> Topic.where(id: 3).update_all(category_id: 20)
=> 0

```

Et dans [Data Explorer](https://meta.discourse.org/t/32566?silent=true), j’obtiens :

```plaintext
Select id, closed, archived, title,category_id
from topics 
where id = '3'

result:
id closed archived title category
3 true true Über die Kategorie Team 4

```

---

_[View the full topic](https://meta.discourse.org/t/cant-delete-topic-without-category/367811)._
