Sub DelFile(ByVal FilePath As String)
If IO.File.Exists(FilePath) Then
IO.File.Delete(FilePath)
End If
End Sub
Sub DelFile(FilePath)
Set fsoLocal = Server.CreateObject("Scripting.FileSystemObject")
If fso.FileExists(FilePath) Then
fso.DeleteFile(FilePath)
Set fso = nothing
end Sub