in UPDATE How to delete the old in ASP.Net MVC :  - how To delete physically old image after updating

>     >  [HttpPost]
>     >         [ValidateAntiForgeryToken]
>     >         public ActionResult Edit(Job job, HttpPostedFileBase jobimage)
>     >         {
>     >             if (ModelState.IsValid)
>     >             {
>     >                 System.IO.File.Delete(Path.Combine(Server.MapPath("~/Uploads"),job.JobImage));
>     >                 string path = Path.Combine(Server.MapPath("~/Uploads"), jobimage.FileName);
>     >                 jobimage.SaveAs(path);
>     >                 job.JobImage = jobimage.FileName;
>     >                 db.Entry(job).State = EntityState.Modified;
>     >                 db.SaveChanges();
>     >                 return RedirectToAction("Index");
>     >             }
>     >             ViewBag.CategoryId = new SelectList(db.Categories, "Id", "CategoryName", job.CategoryId);
>     >             return View(job);
>     >         }

 - this line not working any help and thank u

> System.IO.File.Delete(Path.Combine(Server.MapPath("~/Uploads"),job.JobImage));