Code:
Dim directoryName As String = "your path here"
For Each deleteFile In Directory.GetFiles(directoryName ,"*.*",SearchOption.TopDirectoryOnly)
    File.Delete(deleteFile)
Next
This is the code that I am attempting to use to delete all the files in a single folder. However, when I run this, I receive this error: "System.ArgumentException: 'Illegal characters in path.'"

I originally got this code https://stackoverflow.com/questions/...iles-in-folder and I saw that others had this problem. Their resolutions did not seem to help or perhaps I did not understand what they were completely saying.

Any ideas or help would be greatly appreciated to get this simple code to work for me!!!! Thanks you guys!