How to delete files which is created before specific date from a folder

@Ramakrishnan_Thiagu
welcome to the forum

for the file retrieval you can implement:

arrFilesFI  = new DirectoryInfo("C:\").GetFiles().Where(Function (x) x.CreationTime.Date <= YourDateTimeVar.Date).toArray

arrFilePaths =
(from fi in new DirectoryInfo("C:").GetFiles()
Where fi.CreationTime.Date <= YourDateTimeVar.Date
Select s = fi.FullName).toArray

Also have a look here: