How to delete folder with files on csharp

Code Example - How to delete folder with files on csharp

                
                        Directory.Delete(@"folderPath", true);
                    
                
 

csharp delete folder with all contents

                        
                                System.IO.Directory.Delete("C:\TempTest", True)