Deletes a document if it is not locked by the config DocExt\Doc with deleting or updating all related documents and with the logging these actions. The related documents are defined by the config DocExt\DocUpDoc ( items with tag DEL ) named as the form of the deleted document. You should use the function in the sub QueryDocumentDelete of the Database Script in your apps.

Syntax

DEprDelete( doc )

Arguments

doc - NotesDocument, modified. The document which is being deleted.

Return

Boolean. The value True (-1) means that the document wasn't locked and was successfully deleted as well as all related documents were successfully deleted or updated.

Configs used

DocExt\Doc, DocExt\DocUpDoc.


Topic links:

DocExt\Doc config

DocExt\DocUpDoc config

See also:

Functions of the library DocExtLib