# Extend rmdir() with optional flag for non empty directories

- Thread: https://externals.io/message/45833
- Original archive: https://news-web.php.net/php.internals/45833
- Started by Johannes Mueller on 2009-10-16T19:54:11+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #45833 — Johannes Mueller — 2009-10-16T19:54:11+00:00

URL: https://externals.io/message/45833#45833

Hi all,

is there any reason why `rmdir()` does not offer an optinal flag for deleting 
non empty directories? If there isn't a reason it would be great to 
implement this feature in future php versions.

Johannes
