DELETE packet

A DELETE packet is sent to request the deletion of certain documents from a collection. See the MongoDB documentation for details.


String getFullCollectionName()
Returns the full name of the collection in question.

void setFullCollectionName(String name)
Sets the full name of the collection in question.

int getDeleteFlags()
Gets the delete flags, of which there is actually only one: 0x0001 means Single Remove, i.e. delete only the first matching document

void setDeleteFlags(int flags)
Sets the delete flags.

BSONObject getSelector()
Returns the selector document for this delete. The format is the same as for a query document.

object getSelectorJson()
Same as getSelector() but returns a JavaScript-friendly object.