Removing a document in Java™ classes
Use remove in Document to remove a document from a database. Use removeAll in DocumentCollection to remove all documents in a collection from a database.
Use remove in Document to remove a document from a database. Use removeAll in DocumentCollection to remove all documents in a collection from a database.