MongoDBDriver/Collection.cs
/// <summary>
/// Deletes documents from the collection according to the spec.
/// </summary>
/// <remarks>An empty document will match all documents in the collection and effectively truncate it.
/// </remarks>
Deletes documents from the collection according to the spec.
Deletes documents from the collection according to the spec .
public void Delete(Document selector){
            DeleteMessage dm = new DeleteMessage();
            dm.FullCollectionName = this.FullName;
            dm.Selector = selector;
            try{
                this.connection.SendMessage(dm);
            }catch(IOException ioe){
                throw new MongoCommException("Could not delete document, communication failure", this.connection,ioe);
            }
        }
public void Delete ( Document selector ) { DeleteMessage dm = new DeleteMessage ( ) ; dm . FullCollectionName = this . FullName ; dm . Selector = selector ; try { this . connection . SendMessage ( dm ) ; } catch ( IOException ioe ) { throw new MongoCommException ( " " , this . connection , ioe ) ; } }
Deletes documents from the collection according to the spec.
Deletes documents from the collection according to the spec .
selector
Document
<not_specific>
remarks
An empty document will match all documents in the collection and effectively truncate it.
An empty document will match all documents in the collection and effectively truncate it .