DeleteDirectory
DeleteDirectory["dir"] deletes the specified directory.
Examples
Delete an empty directory:
DeleteDirectory["emptyFolder"]Delete with contents:
DeleteDirectory["myFolder", DeleteContents -> True]Something isn't working? Report an issue.
Please visit the official Wolfram Language Reference for more details.