If you want to 'erase' the image from the web page (I.E. remove it from the DOM on the client) you'll need to know the ID of the image or the DIV or SPAN that it's in. Use that ID in script to remove it - or hide it - from the DOM. If you were using jQuery, it would look something like this:
$("#your-div").toggle();
If you're meaning that you want it removed from the file system on the server, you'll need to call a method in your application that, in turn, makes a call to
File.Delete
(
MSDN docs). This will vary on implementation depending on what version of ASP.NET you're using and whether or not you're using the MVC framework.
Finally, you'll need to make sure that the ASP.NET account on your server has the appropriate permissions on the directory where the image is stored.
Cheers,
-jc