# 구帖子를 삭제할 수 없습니다

**URL:** https://meta.discourse.org/t/cant-delete-old-topics/230542
**Category:** Support
**Tags:** unsupported-install
**Created:** [6월 20, 2022, 9:50오후 UTC](https://meta.discourse.org/t/cant-delete-old-topics/230542 "2022-06-20T21:50:52Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![Alex\_Bourge](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alex_bourge/32/264277_2.png) [@Alex\_Bourge](https://meta.discourse.org/u/Alex_Bourge)
#### Post date: [6월 20, 2022, 9:50오후 UTC](https://meta.discourse.org/t/cant-delete-old-topics/230542/1 "2022-06-20T21:50:52Z")

</div>

helm을 사용하여 서버에 bitnami discourse 이미지를 배포하고 있으며, 주로 API를 통해 상호작용하고 있습니다. 다음과 같은 문제를 겪고 있습니다:

사용자는 주제를 생성한 후 바로 삭제할 수 있습니다. 그러나 약 1주가 지나면, 같은 사용자가 게시물을 삭제하려고 할 때 오류가 발생합니다. 로그를 확인해 보면 다음과 같은 내용이 보입니다.

> Started DELETE “/t/124” for 162.220.157.139 at 2022-06-20 19:41:43 +0000  
> Mon, Jun 20 2022 2:41:43 pm Processing by TopicsController#destroy as JSON  
> Mon, Jun 20 2022 2:41:43 pm Parameters: {“id”=\>“124”, “topic”=\>{}}  
> Mon, Jun 20 2022 2:41:43 pm Can’t verify CSRF token authenticity.  
> Mon, Jun 20 2022 2:41:43 pm Completed 422 Unprocessable Entity in 29ms (Views: 0.2ms ActiveRecord: 0.0ms Allocations: 2357)

성공적인 삭제에 대한 로그는 다음과 같습니다:

> Started DELETE “/t/135” for 162.220.157.139 at 2022-06-20 21:37:07 +0000  
> Mon, Jun 20 2022 4:37:08 pm Processing by TopicsController#destroy as JSON  
> Mon, Jun 20 2022 4:37:08 pm Parameters: {“id”=\>“135”, “topic”=\>{}}  
> Mon, Jun 20 2022 4:37:08 pm Can’t verify CSRF token authenticity.  
> Mon, Jun 20 2022 4:37:08 pm Rendered text template (Duration: 0.0ms Allocations: 1)  
> Mon, Jun 20 2022 4:37:08 pm Completed 200 OK in 301ms (Views: 1.4ms ActiveRecord: 0.0ms Allocations: 11569)

실제 UI에서도 오래된 메시지를 삭제하려고 하면 다음과 같은 메시지가 표시됩니다:

> You don’t have permission to delete this topic. If you really want it to be deleted, submit a flag for moderator attention together with reasoning.

시간이 지나면 사용자가 자신의 주제를 삭제할 수 없는 이유가 무엇일까요?

또한, 로그인에는 oidc 인증(Keycloak)이 사용되고 있습니다.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [6월 21, 2022, 1:23오전 UTC](https://meta.discourse.org/t/cant-delete-old-topics/230542/2 "2022-06-21T01:23:17Z")

</div>

해당 설정이 있습니다. 사이트 설정에서 '삭제’를 검색하면 찾을 수 있습니다.

---

<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: [6월 21, 2022, 4:21오전 UTC](https://meta.discourse.org/t/cant-delete-old-topics/230542/3 "2022-06-21T04:21:16Z")

</div>

> [@Alex\_Bourge](#):
>
> 시간이 지난 후 사용자가 자신의 주제(토픽)를 삭제할 수 없는 이유가 무엇인지 아는 분 계신가요?

답글이 없는 한 사용자는 자신의 주제를 삭제할 수 있습니다. 답글이 있는 경우 해당 오류가 발생합니다. 이는 스태프의 인지나 승인 없이 다른 사용자의 콘텐츠를 삭제하는 것을 방지하기 위한 조치입니다.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [6월 21, 2022, 10:21오전 UTC](https://meta.discourse.org/t/cant-delete-old-topics/230542/4 "2022-06-21T10:21:57Z")

</div>

그게 다인 것 같아요. `post edit time limit`처럼 삭제 기간이 있는 줄 알았거든요.

---

<div class="post-metadata">

### Author: ![Alex\_Bourge](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alex_bourge/32/264277_2.png) [@Alex\_Bourge](https://meta.discourse.org/u/Alex_Bourge)
#### Post date: [6월 21, 2022, 2:44오후 UTC](https://meta.discourse.org/t/cant-delete-old-topics/230542/5 "2022-06-21T14:44:47Z")

</div>

설정에서 게시글, 주제, 삭제/제거에 해당할 수 있는 모든 항목을 샅샅이 확인하고 변경해 보았지만, 아무런 효과가 없었습니다.

해당 사용자가 삭제하려고 하는 게시글에는 답변이 없으며, 1주일 이상 지난 게시글입니다. 사용자는 16시간 전에 작성된 게시글은 삭제할 수 있었으며, 오늘 늦게 24시간 전에 작성된 게시글도 테스트할 예정입니다.

해당 사용자와 삭제할 수 없는 주제의 정보는 다음과 같습니다:

```plaintext
{
  user: {
    id: 20,
    username: 'molenchuk-tite-99ecd',
    name: 'teacher firstgrade',
    avatar_template: '/letter_avatar_proxy/v4/letter/m/cab0a1/{size}.png',
    email: 'molenchuk+titeacher@weare5stones.com',
    secondary_emails: [],
    active: true,
    admin: false,
    moderator: false,
    last_seen_at: '2022-06-20T21:49:19.750Z',
    last_emailed_at: null,
    created_at: '2022-06-13T16:33:29.655Z',
    last_seen_age: 60354.179525574,
    last_emailed_age: null,
    created_at_age: 684104.274168186,
    trust_level: 1,
    manual_locked_trust_level: null,
    flag_level: 0,
    title: null,
    time_read: 168,
    staged: false,
    days_visited: 1,
    posts_read_count: 6,
    topics_entered: 1,
    post_count: 0
  },
  topic: {
    post_stream: { 
      posts: [
        {
          id: 127,
          name: 'teacher firstgrade',
          username: 'molenchuk-tite-99ecd',
          avatar_template: '/letter_avatar_proxy/v4/letter/m/cab0a1/{size}.png',
          created_at: '2022-06-13T16:36:45.485Z',
          cooked: '<p>This message is to confirm the system is working now.</p>',
          post_number: 1,
          post_type: 1,
          updated_at: '2022-06-13T16:36:45.485Z',
          reply_count: 0,
          reply_to_post_number: null,
          quote_count: 0,
          incoming_link_count: 0,
          reads: 2,
          readers_count: 1,
          score: 0.2,
          yours: false,
          topic_id: 124,
          topic_slug: 'confirmation-data',
          display_username: 'teacher firstgrade',
          primary_group_name: null,
          primary_group_flair_url: null,
          primary_group_flair_bg_color: null,
          primary_group_flair_color: null,
          version: 1,
          can_edit: true,
          can_delete: false,
          can_recover: false,
          can_wiki: true,
          read: false,
          user_title: null,
          bookmarked: false,
          actions_summary: [
            { id: 2, can_act: true },
            { id: 3, can_act: true },
            { id: 4, can_act: true },
            { id: 8, can_act: true },
            { id: 6, can_act: true },
            { id: 7, can_act: true }
          ],
          moderator: false,
          admin: false,
          staff: false,
          user_id: 20,
          hidden: false,
          trust_level: 1,
          deleted_at: null,
          user_deleted: false,
          edit_reason: null,
          can_view_edit_history: true,
          wiki: false,
          reviewable_id: 0,
          reviewable_score_count: 0,
          reviewable_score_pending_count: 0
        }
      ],
      stream: [127]
    },
    timeline_lookup: [[ 1, 7] ],
    suggested_topics: [[Object], [Object], [Object], [Object], [Object] ],
    id: 124,
    title: 'Confirmation Data',
    fancy_title: 'Confirmation Data',
    posts_count: 1,
    created_at: '2022-06-13T16:36:45.265Z',
    views: 9,
    reply_count: 0,
    like_count: 0,
    last_posted_at: '2022-06-13T16:36:45.485Z',
    visible: true,
    closed: false,
    archived: false,
    has_summary: false,
    archetype: 'regular',
    slug: 'confirmation-data',
    category_id: 22,
    word_count: 12,
    deleted_at: null,
    user_id: 20,
    featured_link: null,
    pinned_globally: false,
    pinned_at: null,
    pinned_until: null,
    image_url: null,
    slow_mode_seconds: 0,
    draft: null,
    draft_key: 'topic_124',
    draft_sequence: 0,
    unpinned: null,
    pinned: false,
    current_post_number: 1,
    highest_post_number: 1,
    deleted_by: null,
    has_deleted: false,
    actions_summary: [
      { id: 4, count: 0, hidden: false, can_act: true },
      { id: 8, count: 0, hidden: false, can_act: true },
      { id: 7, count: 0, hidden: false, can_act: true }
    ],
    chunk_size: 20,
    bookmarked: false,
    topic_timer: null,
    message_bus_last_id: 0,
    participant_count: 1,
    show_read_indicator: false,
    thumbnails: null,
    details: {
      can_edit: true,
      notification_level: 1,
      can_move_posts: true,
      can_delete: true,
      can_remove_allowed_users: true,
      can_invite_to: true,
      can_create_post: true,
      can_reply_as_new_topic: true,
      can_flag_topic: true,
      can_convert_topic: true,
      can_review_topic: true,
      can_close_topic: true,
      can_archive_topic: true,
      can_split_merge_topic: true,
      can_edit_staff_notes: true,
      can_toggle_topic_visibility: true,
      can_pin_unpin_topic: true,
      can_moderate_category: true,
      can_remove_self_id: 1,
      participants: [
        {
          id: 20,
          username: 'molenchuk-tite-99ecd',
          name: 'teacher firstgrade',
          avatar_template: '/letter_avatar_proxy/v4/letter/m/cab0a1/{size}.png',
          post_count: 1,
          primary_group_name: null,
          primary_group_flair_url: null,
          primary_group_flair_color: null,
          primary_group_flair_bg_color: null,
          trust_level: 1
        }
      ],
      created_by: {
        id: 20,
        username: 'molenchuk-tite-99ecd',
        name: 'teacher firstgrade',
        avatar_template: '/letter_avatar_proxy/v4/letter/m/cab0a1/{size}.png'
      },
      last_poster: {
        id: 20,
        username: 'molenchuk-tite-99ecd',
        name: 'teacher firstgrade',
        avatar_template: '/letter_avatar_proxy/v4/letter/m/cab0a1/{size}.png'
      }
    }
  }
}

```

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [6월 21, 2022, 2:53오후 UTC](https://meta.discourse.org/t/cant-delete-old-topics/230542/6 "2022-06-21T14:53:00Z")

</div>

UX에서 삭제할 수 있나요?

---

<div class="post-metadata">

### Author: ![Alex\_Bourge](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alex_bourge/32/264277_2.png) [@Alex\_Bourge](https://meta.discourse.org/u/Alex_Bourge)
#### Post date: [6월 21, 2022, 2:56오후 UTC](https://meta.discourse.org/t/cant-delete-old-topics/230542/7 "2022-06-21T14:56:17Z")

</div>

UX에서도 삭제할 수 없어요

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [6월 21, 2022, 2:58오후 UTC](https://meta.discourse.org/t/cant-delete-old-topics/230542/8 "2022-06-21T14:58:06Z")

</div>

그 메시지는 무엇인가요? (그렇게 하면 해당 오류를 참조하는 코드 위치를 찾을 수 있습니다)

---

<div class="post-metadata">

### Author: ![Alex\_Bourge](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alex_bourge/32/264277_2.png) [@Alex\_Bourge](https://meta.discourse.org/u/Alex_Bourge)
#### Post date: [6월 21, 2022, 2:59오후 UTC](https://meta.discourse.org/t/cant-delete-old-topics/230542/9 "2022-06-21T14:59:57Z")

</div>

이 메시지가 표시됩니다

> [@Alex\_Bourge](#):
>
> 이 주제를 삭제할 권한이 없습니다. 정말로 삭제하려면 이유를 들어 플래그를 제출하여 관리자의 관심을 끌어야 합니다.

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [6월 21, 2022, 6:08오후 UTC](https://meta.discourse.org/t/cant-delete-old-topics/230542/10 "2022-06-21T18:08:14Z")

</div>

> [@Alex\_Bourge](#):
>
> 사용자는 방금 16시간 전에 작성된 게시물을 삭제할 수 있었고, 오늘 늦게 24시간 전에 작성된 게시물도 테스트할 예정입니다.

이것은 편집 제한 사항을 떠올리게 합니다.

> [@JammyDodger](#):
>
> |⚙||TL0|TL1|TL2|TL3|TL4|Category Moderator|Moderator|  
> | — | — | — | — | — | — | — | — | — | —|  
> |[[13]](#footnote-1091734-13)|게시물 편집|24시간|24시간|30일|30일|제한 없음|TL|제한 없음|

게시물의 텍스트가 변경되었으므로, 삭제 시에도 이 제한 사항이 적용된다고 생각합니다.

[이 토픽](https://meta.discourse.org/t/topic-closed-without-system-record/196813/50?u=moin)에서 편집도 문제를 일으켰던 것을 기억합니다

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [6월 21, 2022, 6:20오후 UTC](https://meta.discourse.org/t/cant-delete-old-topics/230542/11 "2022-06-21T18:20:40Z")

</div>

> [@Moin](#):
>
> 이건 편집 제한을 떠올리게 합니다.

**이거** 가 바로 제가 찾던 것이었네요!

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [10월 27, 2022, 7:07오후 UTC](https://meta.discourse.org/t/cant-delete-old-topics/230542/12 "2022-10-27T19:07:10Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
