How do I delete the files in a folder in a directory via a button click?
This is the currant method I have tried.
protected void BtnDel_Click(object sender, EventArgs e)
{
Array.ForEach(Directory.GetFiles(Server.MapPath("/Notes/"), File.Delete)
}
This doesn't seem to be working so any alternative would be appreciated