# ספירת קטגוריה שלילית (מספר מינוס) לאחר הסרה מרשימה/מחיקה

**URL:** https://meta.discourse.org/t/negative-category-count-minus-number-after-unlisting-deleting/177556
**Category:** UX
**Tags:** unlisting
**Created:** [28 בינואר,‏ 2021,‏ 3:34pm UTC](https://meta.discourse.org/t/negative-category-count-minus-number-after-unlisting-deleting/177556 "2021-01-28T15:34:23Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [28 בינואר,‏ 2021,‏ 11:27pm UTC](https://meta.discourse.org/t/negative-category-count-minus-number-after-unlisting-deleting/177556/2 "2021-01-28T23:27:39Z")

</div>

> [@Jonathan5](#):
>
> Thinking about it - most of the topics I deleted had previously been unlisted. I wonder whether that is relevant - maybe unlisting and deleting each separately deducts 1 from the count per topic.

Yes, that’s the problem. I can reproduce the issue on my test site. Unlisting a topic removes the topic from its category’s topic stats. If you then delete the unlisted topic, it is again subtracted from its category’s topic stats. This means that unlisting and then deleting a single topic is counted as removing two topics from the stats.

Discourse runs a `CategoryStats` background job once every 24 hours. When that job runs, the stats for your category should get fixed. If you have access to your site’s rails console, and don’t want to wait for the job to run, you can run the command manually with:

```ruby
Category.update_stats

```

I tested this on my own site. Running that command fixed the issue for me.

---

_[View the full topic](https://meta.discourse.org/t/negative-category-count-minus-number-after-unlisting-deleting/177556)._
