@DeleteDocument (Formula Language)

Deletes the current document.

Syntax

@DeleteDocument

Usage

This function works only in agents.

To mark a document for deletion in a view, see @Command[EditClear].

You cannot use this function in Web applications.

Examples

This example deletes those documents where the Status field equals "Closed."
FIELD Status:=@If(Status="Closed";@DeleteDocument;Status)

Language cross-reference

DeleteDocument URL command

Remove method of LotusScript® NotesDocument class

DeleteDocument method of LotusScript NotesUIDocument class

remove method of Java™ Document class