i have uploaded some files in upload folder, now want to delete the files from that folder.
kindly help me..
Delete a file from folder in application
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
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
Pankaj PandeyRank #642 · 3.7K reputationPosted Jun 19, 2013, 2:14 AM EDT
using System.IO;
on button event write this code..
Pankaj PandeyRank #642 · 3.7K reputationPosted Jun 19, 2013, 1:56 AM EDT
add using System.IO;
and find the path and use Delete("your path"); .
if helpfull then mark as answered.
RIM Singh46 reputationPosted Jun 19, 2013, 1:58 AM EDT
but can you write the code here..i am new in asp.net.