How to delete Server Side FOLDERS in asp.net .......
for example :
flePath :" /~Tempfolder/FileFolder/"
I have one Tempfolder and inside of one filefolder .....how to delete the hole Filefolder....
kindy advice thanks.....
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Vipan SharmaPosted Sep 4, 2015, 5:25 AM
Upendra Pratap ShahiPosted Sep 4, 2015, 4:39 AM
string directoryPath = folder_path";
// If you want delete the folder directly
if (Directory.Exists(directoryPath))
{
}
//Delete all files from the Directory
if (Directory.Exists(directoryPath))
{
}
Manas MohapatraPosted Sep 4, 2015, 4:30 AM