Removes an existing directory as well as any files or subdirectories it contains.
os.rmdir("path")
path is the file system path to be removed.
path
True if successful, otherwise nil and an error message.
Premake 4.0 or later.