Introduction:
Here I will explain how to delete all files in directories and
subdirectories in asp.net using C#
and VB.NET.
Description:
In previous articles I explained Create or Delete directory/folder in c#, Delete files from uploaded folder in asp.net, Check username availability with progressbar, Asp.net Interview questions, Joins in SQL Server and many articles relating to Gridview,
SQL ,jQuery,asp.net,
C#,VB.NET.
Now I will explain how to delete all directories and subdirectories in asp.net
using C# and VB.NET.
To delete all directories and
subdirectories first we need to add namespace using System.IO Once we add namespace need to write
the code like as shown below