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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Manas MohapatraRank #182 · 13.2K reputationPosted Sep 4, 2015, 12:30 AM EDT
Upendra Pratap ShahiRank #329 · 7.5K reputationPosted Sep 4, 2015, 12:39 AM EDT
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))
{
}
Vipan SharmaRank #1,589 · 999 reputationPosted Sep 4, 2015, 1:25 AM EDT