rmdir rmdir name Deletes the directory specified by name if it is empty. If it succeeds, it returns ; otherwise, it returns and puts the error code into $!. If name is omitted, the function uses $_.