File.Delete() (Method)

A method that deletes files.


JScript - 3.0
Internet Explorer - 4.0
JavaScript syntax:IEmyFile.Delete()

If need be, you can delete a file from the file system in the client environment. This may not be possible from a web browser due to the security protections surrounding the browser.

However, JScript is available as a general purpose scripting tool as part of the WSH facility on Windows. In that context it may well need to be able to delete a file.

See also:FileSystem.DeleteFile(), Folder.Delete()