Attempts to remove the directory named by directory. The directory must be empty, and the relevant permissions must permit this. A E_WARNING level error will be generated on failure.
Path to the directory.
A context stream resource.
Returns true on success or false on failure.