Removing a document in LotusScript® classes

The Remove method of NotesDocument removes a document from a database. The RemoveAll method of NotesDocumentCollection removes all documents in a collection from a database. An argument permits you to force the removal (True) or make it conditional on the document not being modified by someone else since the program started (False).

The preceding methods do soft deletions if "Allow soft deletions" is enabled. The RemovePermanently method of NotesDocument always does a hard deletion.

The DeleteDocument method of NotesDocumentCollection deletes a document from a document collection, but does not delete it from storage.