# Permanently delete not functioning

**URL:** <https://meta.discourse.org/t/permanently-delete-not-functioning/249248>\
**Category:** Bug\
**Tags:** permanently-delete\
**Created:** [December 18, 2022, 2:02am UTC](https://meta.discourse.org/t/permanently-delete-not-functioning/249248 "2022-12-18T02:02:34Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![Soenneker](https://avatars.discourse-cdn.com/v4/letter/s/49beb7/32.png) [@Soenneker](https://meta.discourse.org/u/Soenneker)\
**Post date:** [January 5, 2023, 1:14am UTC](https://meta.discourse.org/t/permanently-delete-not-functioning/249248/8 "2023-01-05T01:14:39Z")

</div>

Hi @JammyDodger

Thanks for your reply.

I see the issue you are talking about, all of this is lining up with current functionality that I’m seeing too.

A few things to add to the observations:

If I refresh on a soft deleted page after 5 minutes has passed, and I permanently delete the post, the topic is still not deleted. I get the modal that you’re seeing and I press OK. For posts other than the original post, it works.

However, if I go to /latest?status=deleted it still comes up in the list of topics. The topics show Replies -1, and if I click on these topics I then see “☹ error something went wrong” page.

I did receive a 500 error at one point, this looks like perhaps the topic was still deleting or something and perhaps I tried deleting it while it was in progress:  
Looking at the error log this is what I see:

```plaintext
NoMethodError (undefined method `topic_id' for nil:NilClass)
lib/post_destroyer.rb:60:in `destroy'
app/controllers/topics_controller.rb:643:in `destroy'
app/controllers/application_controller.rb:413:in `block in with_resolved_locale'
app/controllers/application_controller.rb:413:in `with_resolved_locale'
lib/middleware/omniauth_bypass_middleware.rb:71:in `call'
lib/content_security_policy/middleware.rb:12:in `call'
lib/middleware/anonymous_cache.rb:368:in `call'
config/initializers/100-quiet_logger.rb:23:in `call'
config/initializers/100-silence_logger.rb:31:in `call'
lib/middleware/enforce_hostname.rb:23:in `call'
lib/middleware/request_tracker.rb:209:in `call'

```

---

_[View the full topic](https://meta.discourse.org/t/permanently-delete-not-functioning/249248)._
