Skip to main content

Bug Report: Deleted files still appear in lesson space and remain accessible on Cloudflare R2

Hi,

I'd like to report a bug where deleting a file attachment from the
post editor does not fully remove it β€” the file remains visible in
the lesson space UI and is still accessible via its link.

Environment

  • FCOM Pro: 2.5.0
  • WordPress: 6.9.4
  • PHP: 8.3.30
  • Media storage: Cloudflare R2

Steps to reproduce

  1. Upload a file to a lesson post in a Community space
  2. Open the post editor and delete the file attachment
  3. Save/update the post
  4. Navigate to the lesson space

Expected behavior

  • The file no longer appears in the lesson space
  • The file is deleted from Cloudflare R2 storage
  • Accessing the file link returns an error (file not found)

Actual behavior

  • The file still appears in the lesson space even after clearing
    the browser cache
  • The file link remains active and the file is fully accessible
    to members

Impact
This is a potential data management and privacy issue. Instructors
cannot reliably remove content they intend to delete β€” files intended
for removal remain exposed to members indefinitely.

It also suggests that Cloudflare R2 storage is not being cleaned up
on file deletion, which may lead to unintended storage accumulation
over time.

Thanks!

Raiyan Marzan

Yuhei KuwahataΒ The file should be deleted from the server within 1-2 hours.

Yuhei Kuwahata

Raiyan MarzanΒ I can confirm the file is no longer accessible via its link β€” thank you.

However, the file is still displayed in the UI β€” both in the post editor and on the lesson page for members. Please see the attached screen recording.

https://www.dropbox.com/scl/fi/qaw9ssqpmlyuu7qt190hi/2026-05-26-22.44.35.mp4?rlkey=cvxm3irz0993667k49uhqw7eb&dl=0

Raiyan Marzan

Yuhei KuwahataΒ I will have a look into it. Thanks for reporting it in detail.