Php Recursively Delete Directory

[Solved] Php Recursively Delete Directory | Php - Code Explorer | yomemimo.com
Question : php recursively delete directory

Answered by : homeless-hamster-zthavxwzu688

function removeDirectory($path) {	$files = glob($path . '/*');	foreach ($files as $file) {	is_dir($file) ? removeDirectory($file) : unlink($file);	}	rmdir($path);	return;
}

Source : https://andy-carter.com/blog/recursively-remove-a-directory-in-php | Last Update : Fri, 24 Jul 20

Answers related to php recursively delete directory

Code Explorer Popular Question For Php