select definition
from sys.objects o
join sys.sql_modules m on m.object_id = o.object_id
where o.object_id = object_id( 'dbo.vw_demo')
and o.type = 'V'
Use Name Space : using System.IO;
C# code
----------------
string filePhisicalPath = Server.MapPath("~/Images/MyFileName.pdf");
FileInfo objFile = new FileInfo(filePhisicalPath);
if (objFile.Exists)
{
objFile.Delete();
}