vb.net delete folder if exists

Code Example - vb.net delete folder if exists

                
                        My.Computer.FileSystem.DeleteDirectory(path, FileIO.UIOption.OnlyErrorDialogs, FileIO.RecycleOption.DeletePermanently)