# Error when attempting to permanently delete as moderator

**URL:** https://meta.discourse.org/t/error-when-attempting-to-permanently-delete-as-moderator/222284
**Category:** Bug
**Tags:** permanently-delete
**Created:** [March 29, 2022, 8:26am UTC](https://meta.discourse.org/t/error-when-attempting-to-permanently-delete-as-moderator/222284 "2022-03-29T08:26:24Z")
**Posts on this page:** 4
**Page:** 1

<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: [March 29, 2022, 8:26am UTC](https://meta.discourse.org/t/error-when-attempting-to-permanently-delete-as-moderator/222284/1 "2022-03-29T08:26:24Z")

</div>

Continuing the discussion from [Introducing permanently delete post functionality](https://meta.discourse.org/t/introducing-permanently-delete-post-functionality/207109/11):

While testing to see if a moderator had the ability to Permanently Delete a post I noticed that the Permanently Delete option is avaible in the moderator’s post wrench, but will generate a `403 Forbidden` error when used.

- Enable hidden site setting `can_permanently_delete`
- (soft) Delete a post
- Use test moderator to Permanently Delete from deleted post’s wrench menu  
  
- “Sorry, an error has occurred” message
- 403 Forbidden error in console

Is this setting meant to be Admin only?

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [March 29, 2022, 9:17am UTC](https://meta.discourse.org/t/error-when-attempting-to-permanently-delete-as-moderator/222284/2 "2022-03-29T09:17:15Z")

</div>

From what I read at

> [@Introducing permanently delete post functionality](https://meta.discourse.org/t/introducing-permanently-delete-post-functionality/207109/1):
>
> posts can be permanently deleted by the same administrator who deleted the post only after 5 minutes have passed OR by a different administrator immediately.

It looks like the feature is meant to be admins only. However, it seems like the option being shown to moderators could be a bug.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [April 1, 2022, 12:09am UTC](https://meta.discourse.org/t/error-when-attempting-to-permanently-delete-as-moderator/222284/5 "2022-04-01T00:09:20Z")

</div>

Thanks heaps for reporting, @nbianca fixed this per:

[https://github.com/discourse/discourse/pull/16348](https://github.com/discourse/discourse/pull/16348)

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [April 1, 2022, 12:09am UTC](https://meta.discourse.org/t/error-when-attempting-to-permanently-delete-as-moderator/222284/6 "2022-04-01T00:09:25Z")

</div>


