MyBB Community Forums

Full Version: Deleted attachments from Admin CP are not deleted from disk
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I tried to reduce the total size of my attachments as I am running out of storage space on my server. I deleted old attachments via admin control panel, but to my surprise they are still present on disk and in the same uploads directories. There is no disk permission issues. Do I need to do anything else to get them removed from disk?
I don't have that issue. When I delete a file from AdminCP, I see that file is removed from the upload directory in MyBB.

If there's no file permission issue, I've no idea where the problem might be. Will you have a check on PHP error log file for anything that is suspicious?
Thanks for checking. This is a very odd issue. I don't see any errors related to any PHP files under the "admin" directory in the logs.
I ended up writing a python script to list all the attachment files on disk and delete those that are no longer present in MyBB database.