DeleteDirectory

DeleteDirectory["dir"]
deletes a directory called dir.