@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)