Normally, when deleting files, their media file gets deleted in the process. Changing the status of the parent page before deleting the file will however not delete the file.
Expected behavior
The media file should be deleted with the file.
To reproduce
Upload a file to any page
Change the page's status to draft
Delete the file
The media file is still available (and will forever be)
Description
Normally, when deleting files, their media file gets deleted in the process. Changing the status of the parent page before deleting the file will however not delete the file.
Expected behavior
The media file should be deleted with the file.
To reproduce
https://github.com/user-attachments/assets/1e9af684-1eaf-410a-8ec5-49899e645ebd
Your setup
Kirby Version
4.3.0