rmdir Removes directory &reftitle.description; boolrmdir stringdirname resourcecontext Attempts to remove the directory named by dirname. The directory must be empty, and the relevant permissions must permit this. A E_WARNING level error will be generated on failure. &reftitle.parameters; dirname Path to the directory. context ¬e.context-support; &reftitle.returnvalues; &return.success; &reftitle.changelog; &Version; &Description; 5.0.0 As of PHP 5.0.0 rmdir can also be used with some URL wrappers. Refer to for a listing of which wrappers support rmdir. &reftitle.examples; <function>rmdir</function> example ]]> &reftitle.notes; ¬e.sm.uidcheck.dir; &reftitle.seealso; is_dir mkdir unlink