Drop the collection.

 @example Drop the collection.
   collection.drop

 @return [ Hash ] The command information.

 @since 1.0.0
199873
def drop
      begin
        session.with(read: :primary).command(drop: name)
      rescue Moped::Errors::OperationFailure => e
        raise e unless e.ns_not_found?
        false
      end
    end
1077041
def drop_connection(self, name, database=None):
        
        request_executor = self._store.get_request_executor(database)
        command = DropSubscriptionConnectionCommand(name)
        request_executor.execute(command)
562181
function drop()
    {

        $index = new Index($this->index);

        $index->connection = $this->connection;

        return $index->drop();
    }
840051
def delete_collection(db_name, collection_name, host='localhost', port=27017):
    """"""
    client = MongoClient("mongodb://%s:%d" % (host, port))
    client[db_name].drop_collection(collection_name)
1330543
def delete_many(self, *args, **kwargs):
        
        result = self.collection.delete_many(*args, **kwargs)
        return result.raw_result
346157
def drop(n)
      filter("drop") do |yielder|
        each_with_index do |element, index|
          next if index < n
          yielder.call(element)
        end
      end
    end
835191
function dropCollections (db, each, fn) {
  if (each && !fn) { fn = each; each = null }
  var conn = db.connection
    , cols = Object.keys(conn.collections)

  cols.forEach(function (name, k) {
    console.log('name: ', name, k)
    conn.collections[name].drop(function (err) {
      if (err == 'ns not found') {
        err = null
      }
      each && each(err, name)
    })
  })
  fn && fn(null)
}
196873
def drop(self):
        
        api = self._instance._client.database_admin_api
        metadata = _metadata_with_prefix(self.name)
        api.drop_database(self.name, metadata=metadata)
770449
public function drop()
    {
        $this->curl->drop($this->base);
        $this->curl->createCacheIndex($this->base, $this->createCache);
        $this->dropChain();
    }
586967
public function cmdDeleteCollectionItem()
    {
        $id = $this->getParam(0);

        if (empty($id) || !is_numeric($id)) {
            $this->errorAndExit($this->text('Invalid command'));
        }

        $condition = $id;
        if ($this->getParam('collection')) {
            $condition = array('collection_id' => $id);
        }

        $result = $this->collection_item->delete($condition);

        if (empty($result)) {
            $this->errorAndExit($this->text('Unexpected result'));
        }

        $this->output();
    }
21415
def _delete(self):
        
        collection = JSONClientValidated('assessment',
                                         collection='AssessmentSection',
                                         runtime=self._runtime)
        collection.delete_one({'_id': ObjectId(self.get_id().get_identifier())})
482838
def _del(self, command, *args, **kwargs):
        
        if self.indexable:
            self.deindex()
        return self._traverse_command(command, *args, **kwargs)
413127
public function purge() {
        if ($this->isready) {
            $this->collection->drop();
            $this->collection = $this->database->selectCollection($this->definitionhash);
        }

        return true;
    }
160101
def columns_indeces_to_drop columns
      result = []
      headers = @table[0]
      headers.each_with_index do |header, i|
        result << i unless columns.include? header
      end
      result
    end
757766
public function drop()
    {
        $conn = $this->connection->getConnection();
        $db = r\db($this->connection->getDatabaseName());
        $db->tableDrop($this->table)->run($conn);
    }
121365
function destroy() {
  this.conn = null;
  this.cmd = null;
  this.args = null;
  this.db = null;
  this.info = null;
  this.conf = null;
  this.def = null;
}
639110
def delete_one(self, *args, **kwargs):
        
        result = self.collection.delete_one(*args, **kwargs)
        return result.raw_result