-
Notifications
You must be signed in to change notification settings - Fork 0
removeFolder
Corey Avis edited this page Sep 23, 2026
·
2 revisions
Removes an existing folder. To prevent accidental data loss, this method will only remove the folder if it is completely empty.
removeFolder(string $folder): bool
folder (string) : The name, relative path, or absolute path of the folder to delete.
(bool)
: Returns true on success and false if the folder doesn't exist, or if it contains files/subfolders.
$file->removeFolder('images')
- Triggers a warning if the folder is not empty.