deleteDocument (DocumentCollection - Java)

Deletes a document from a collection.

Defined in

DocumentCollection

Syntax

public void deleteDocument(Document doc)
    throws NotesException

Parameters

Document doc

The document to be deleted. Cannot be null.

Usage

This method throws an exception if:

  • The document is already deleted.
  • The document cannot be retrieved from this collection.
  • The document collection is the result of a multi-database full-text search.

Example