File.rmdir
You're seeing just the function
rmdir, go back to File module for more information.
Specs
Tries to delete the dir at path.
Returns :ok if successful, or {:error, reason} if an error occurs.
It returns {:error, :eexist} if the directory is not empty.
Examples
File.rmdir("tmp_dir")
#=> :ok
File.rmdir("non_empty_dir")
#=> {:error, :eexist}
File.rmdir("file.txt")
#=> {:error, :enotdir}