Section: Operating System Functions
rmdir('dirname')
which removes the directory dirname if it is empty. If you want to delete the directory and all subdirectories and files in it, use the syntax
dirname
rmdir('dirname','s')