WMPRO, WMMINI FW >= 1.0 WMMEGA FW >= 2.0
Remove a directory, with optional deletion of contents
This function attempts to remove a directory as specified by the pathname
$pathname: The directory path. Using a /
at the beginning will make it relative to the root, otherwise it will be relative to the current working directory, which is either the folder that the script was started in or as was set by chdir().
$delete_contents: Optional
Integer: 0 on success or -1 on failure
<? if (rmdir("/mypath/")==0) print("Directory removed!"); ?>