# كيفية إصلاح العناوين القديمة؟

**URL:** <https://meta.discourse.org/t/how-to-repair-old-titles/76531>\
**Category:** Product Support\
**Created:** [21 ديسمبر 2017، 2:38ص UTC](https://meta.discourse.org/t/how-to-repair-old-titles/76531 "2017-12-21T02:38:11Z")\
**Posts on this page:** 1\
**Showing post:** 16

<div class="post-metadata">

**Author:** ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)\
**Post date:** [30 ديسمبر 2017، 11:11ص UTC](https://meta.discourse.org/t/how-to-repair-old-titles/76531/16 "2017-12-30T11:11:25Z")

</div>

Your screenshot gives the impression that only “About the category” topics are affected. Did you delete them at some point in time? I just gave it a try and it looks like deleting those topics isn’t possible anymore. Maybe it was in the past and there was a bug…

If you really want those posts gone, you could delete them in the Rails console (`rails c` inside the Docker container). This should work:

```ruby
Post.where("NOT EXISTS (SELECT 1 FROM topics WHERE posts.topic_id = topics.id)").delete_all

```

> [@schungx](#):
>
> If the topic\_id points to a valid topic, then it is simply something that the rake task hasn’t handled

No, it’s definitely not a problem with the rake task. The referenced topic IDs simply do not exist anymore.

---

_[View the full topic](https://meta.discourse.org/t/how-to-repair-old-titles/76531)._
