FileInfo fi = new FileInfo(path);
DirectoryInfo di = fi.Directory;
if(di.Exists)
di.Delete(true);
You should add error handing to this. Both FileInfo and DirectoryInfo classes have an "Exists()" method that should be checked.
The "true" in DirectoryInfo.Delete(true) says that the folder and contents should be deleted.