If you store the actual image data in your database, in the date1 table, then that code will delete the image data. If you store it in a different table, then you will need to enable
cascade deletes[
^] or write teh code to manually remove them from the other table as well.
If you store it in a disk file and store a path to the file in your DB, then you are best off deleting that from your C# code using
File.Delete[
^] as your webserver will almost certainly have access to the folder holding the image data, and the SQL server computer probably won't.