It deletes a specified file.
Syntax: fso.DeleteFile (filename[, force])
fso: (Required) The name of a FileSystemObject object previously instantiated.
filename: (Required) The name of the file to delete. The filename can contain wildcard characters in the last path component.
force: (Optional) Boolean value that is True of files with the read-only attribute set are to be deleted;False if they are not. False is the default.
Set fso=createobject("Scripting.FileSystemObject") 'File to be deleted. Sourcefile="C:copy.txt" 'Delete the file fso.DeleteFile Sourcefile Set fso=nothing