DeleteDocument (NotesDocumentCollection - LotusScript®)

Deletes a document from a collection (not from the disk).

Note: This method is new with Release 5.

Defined in

NotesDocumentCollection

Syntax

Call notesDocumentCollection .DeleteDocument( document )

Parameters

document

NotesDocument. The document to be deleted. If you specify Nothing, this method generates an error.

Usage

The specified document must have originated in this collection. If the document does not exist in the collection, or if it was removed from the database by a RemoveAll operation, an error will be raised.

Example