# 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:** 9

<div class="post-metadata">

**Author:** ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)\
**Post date:** [January 5, 2023, 6:54am UTC](https://meta.discourse.org/t/permanently-delete-not-functioning/249248/9 "2023-01-05T06:54:09Z")

</div>

> [@Soenneker](#):
>
> 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.

Excellent. I think that’s just the info I needed for a repro. 🙂 👍

I’ve tried again, but with a topic that consists of only the OP:

- Create topic (with no replies)
- Soft-delete topic (and wait 5 minutes)
- Open post wrench and select ‘Permanently delete’
- Confirm
- ‘Error. Something went wrong’
- Topic still appears in `?status=deleted`, but gives an ‘Error. Something went wrong’ screen when accessing and gives this message in the console:

```plaintext
TypeError: p is undefined
    setupController topic-from-params.js:68
    setup Ember
    s router_js.js:1514
    routeEnteredOrUpdated router_js.js:1524
    setupContexts router_js.js:1470
    finalizeTransition router_js.js:1378
    promise router_js.js:1321
    b rsvp.js:435
    g rsvp.js:421
    invoke queue.ts:203
    flush queue.ts:98
    flush deferred-action-queues.ts:75
    _end index.ts:616
    end index.ts:298
    _run index.ts:667
    run index.ts:339
    d Ember
    success ajax.js:101
    jQuery 6
    y ajax.js:150
    E rsvp.js:460
    E rsvp.js:916
    f ajax.js:163
    loadTopicView topic.js:24
    getAndRemove preload-store.js:28
    E rsvp.js:460
    E rsvp.js:916
    getAndRemove preload-store.js:27
    loadTopicView topic.js:24
    refresh post-stream.js:264
    model topic-from-params.js:25
    deserialize Ember
    getModel router_js.js:775
    resolve router_js.js:616
    b rsvp.js:435
    g rsvp.js:421
    invoke queue.ts:203
    flush queue.ts:98
    flush deferred-action-queues.ts:75
    _end index.ts:616
    _boundAutorunEnd index.ts:257
    promise callback*n/< platform.ts:28
    flush Ember
    _scheduleAutorun index.ts:803
    _ensureInstance index.ts:791
    schedule index.ts:384
    <anonymous> Ember
    v rsvp.js:492
    resolve router_js.js:934
    y router_js.js:249
    getTransitionByIntent router_js.js:1305
    transitionByIntent router_js.js:1247
    doTransition router_js.js:1366
    transitionTo router_js.js:1776
    Ember 2
    handleURL url.js:366
    routeTo url.js:211
    w topic-list-item.js:31
    click topic-list-item.js:187
    Ember 5
application.js:83

```

Let’s see if we can get that looked at. 👍 🙂

---

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