LOTUSSCRIPT LANGUAGE


Kill statement
Example

Deletes a file.

Syntax

Kill fileName

Elements

fileName


Usage

Use Kill with care. If you delete a file with the Kill statement, you can't restore it with LotusScript statements or operating system commands. Make sure the file is closed before you attempt to delete it.

Kill deletes files, not directories. To remove directories, use the RmDir statement.

Note Kill actually may not be successful. The security setup may prevent LotusScript from actually deleting any files. For example, you can only delete a file when you run as an unrestricted agent in Domino. The Domino administrator sets up the rights to restrict what the agent can and cannot do to limit damage.

Example
See Also