# How do i turn off delete option?

**URL:** <https://meta.discourse.org/t/how-do-i-turn-off-delete-option/321314>\
**Category:** Support\
**Created:** [August 12, 2024, 6:07pm UTC](https://meta.discourse.org/t/how-do-i-turn-off-delete-option/321314 "2024-08-12T18:07:08Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)\
**Post date:** [August 14, 2024, 4:12pm UTC](https://meta.discourse.org/t/how-do-i-turn-off-delete-option/321314/13 "2024-08-14T16:12:25Z")

</div>

Ok I’ve been testing this and checked with one of our developer managers, and confirmed it is by design and not a bug. A topic post can be deleted if in the first 24 hours after creation, but only before someone else replies. If a reply is posted, topic cannot be deleted and a modal pops up.

> <https://github.com/discourse/discourse/blob/main/lib/guardian/topic_guardian.rb#L156-L166>

The second OR clause there, `is_my_own?(topic) && topic.posts_count <= 1 && topic.created_at && topic.created_at > 24.hours.ago` does NOT use a specific site setting. Thus, users can delete their own topic regardless of the `post_deletions` site settings within the first 24 hours of creation (and before someone else replies).

This is the pop up message if a reply is posted to the topic trying to be deleted

 ![image](https://global.discourse-cdn.com/meta/original/4X/b/9/d/b9dea09557d982acd9a19a3302cdbdea2f9b4756.png)

Keep in mind that users deleting content is soft deletion. Staff can still see the topics and restore them if necessary. All deleted topics on your forum can be found by admins and mods at `https://your-forum-url/latest?status=deleted`.

---

_[View the full topic](https://meta.discourse.org/t/how-do-i-turn-off-delete-option/321314)._
