PHP executing rm -f -r dirname through exec 15th November 2014PHPManish If exec doesn’t execute the rm -f -r dirname command then try shell_exec, it should work.