int rmdir(string dir) Removes the directory . This can only be successful, when there are no more files in that directory. must start with a / (slash). 'rmdir' returns 0, if not successful, 1 if successful.