rmdir Removes directory Description boolrmdir stringdirname resourcecontext Attempts to remove the directory named by dirname. The directory must be empty, and the relevant permissions must permit this. &return.success; 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. ¬e.context-support; ¬e.sm.uidcheck.dir; See also mkdir and unlink.