RMDIR Remove Directory

Section: Operating System Functions

Usage

Deletes a directory. The general syntax for its use is
  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

  rmdir('dirname','s')