removeAll (DocumentCollection - Java)

Permanently removes the documents in a collection from a database.

Defined in

DocumentCollection

Syntax

public void removeAll(boolean force)
    throws NotesException

Parameters

boolean force

If true, a document is removed even if another user modifies the document after it is retrieved. If false, a document is not removed if another user modifies it first.

Usage

This method moves the current pointer to the first document in the collection.

All documents removed from the database as a result of this operation are also removed from the collection.

Example