How can I disable to create folders for every years and months in uploads folder?

I mean there is a lot of folder under "wp-content/uploads", and the majority of them are empty. Why create WP these folders?


  • This happens because of the option selected in Settings-> Media (Organinze media into folders), you can disable it there – bravokeyl Oct 3 '16 at 20:06

You can disable this by going to Settings -> Media

Media Settings

If you uncheck the setting all the future media uploads will directly into wp-content/uploads folder.

Why create WP these folders?

WP doesn't create empty folders, I assume those folders are created when you have uploaded media and now they they are empty because you might have mass deleted media files for those months. WP doesn't delete folder once there are no media files(I mean once you have deleted all corresponding media files).

My opinion is that it's not a big deal that even if we have empty folders.


To add to @bravokeyl's answer, the reason to the creation of those empty directories is a minor bug in wordpress code that prepares a folder to which it will be able to upload files into, at an API which is not always used as part of the upload process. But except for being annoying to the eye, those empty folders do not have any impact on performance or anything else

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.