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
- Upload a file to a lesson post in a Community space
- Open the post editor and delete the file attachment
- Save/update the post
- 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!
Yuhei KuwahataΒ The file should be deleted from the server within 1-2 hours.
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.
Yuhei KuwahataΒ I will have a look into it. Thanks for reporting it in detail.