using sysytem.io;
string url=Request.QueryString["url"]; string FilePath = Server.MapPath(url);//转换物理路径 File.Delete(FilePath);//执行IO文件删除,需引入命名空间System.IO;