Drop a index.

@param $collection
@param $indexName
@param array $options
@return array|object
545708
public function dropIndex($collection, $indexName, array $options = [])
    {
        $col = $this->db->selectCollection($collection);

        return $col->dropIndex($indexName, $options);
    }
436572
public function delete(array $criteria = [], array $options = []) {
		return $this->getAdapter()->remove(
			$this->getTableName(),
			$criteria,
			$options
		);
	}
1185721
public function deleteIndex($indexName)
    {
        $index = $this->getIndex($indexName);
        if ($index->exists()) {
            return $index->delete();
        }

        return null;
    }
27486
public function count($collectionName, $condition = [], $options = [])
    {
        $this->document = $this->db->getQueryBuilder()->count($collectionName, $condition, $options);

        $result = current($this->execute()->toArray());
        return $result['n'];
    }
1282198
public function delete(object $parent, array $collections, array $options) : void
    {
        $unsetPathsMap = [];

        foreach ($collections as $collection) {
            $mapping = $collection->getMapping();
            if ($mapping['isInverseSide']) {
                continue; // ignore inverse side
            }
            if (CollectionHelper::isAtomic($mapping['strategy'])) {
                throw new UnexpectedValueException($mapping['strategy'] . ' delete collection strategy should have been handled by DocumentPersister. Please report a bug in issue tracker');
            }
            [$propertyPath]               = $this->getPathAndParent($collection);
            $unsetPathsMap[$propertyPath] = true;
        }

        if (empty($unsetPathsMap)) {
            return;
        }

        /** @var string[] $unsetPaths */
        $unsetPaths = array_keys($unsetPathsMap);

        $unsetPaths = array_fill_keys($this->excludeSubPaths($unsetPaths), true);
        $query      = ['$unset' => $unsetPaths];
        $this->executeQuery($parent, $query, $options);
    }
1284730
public function dropIndex($columnName) {
        if (!in_array($columnName, $this->dropIndexes))
                $this->dropIndexes[] = $columnName;

        if (array_key_exists($columnName, $this->getReferences()))
                $this->dropReference($columnName);
        return $this;
    }
226958
protected function removeCollection(Collection $collection, array $options = []) {
		$ids = $collection->_id;
		
		if (count($ids) !== $collection->count()) {
			throw new Exceptions\OperationError('Some of the models has no ID');
		}
		
		$ids = array_map([$this, 'normalizeId'], $ids);
		
		return $this->getAdapter()->remove(
			$this->getTableName(),
			['_id' => [
				'$in' => $ids
			]],
			$options
		);
	}
648257
public function DeleteIndex(\Google\Cloud\Firestore\Admin\V1\DeleteIndexRequest $argument,
      $metadata = [], $options = []) {
        return $this->_simpleRequest('/google.firestore.admin.v1.FirestoreAdmin/DeleteIndex',
        $argument,
        ['\Google\Protobuf\GPBEmpty', 'decode'],
        $metadata, $options);
    }
53705
public boolean dropSingleIndex(String indexName) throws
            ElasticsearchException {
        DeleteIndexRequest deleteIndexRequest = new DeleteIndexRequest(indexName);
        DeleteIndexResponse res = this.client.admin().indices().delete(deleteIndexRequest).actionGet();
        return indexExists(indexName);
    }
402611
protected function getForeignKeyRemove(array $output, string $indexName): array
    {
        $output[] = sprintf("%s->dropForeignKey('%s')", $this->ind2, $indexName);

        return $output;
    }
761813
public function getCollection($collectionName, array $options = []): Collection
    {
        $cacheKey = $collectionName.$this->getCollectionOptionsHash($options);
        if (!array_key_exists($cacheKey, $this->collectionsCache)) {
            $this->collectionsCache[$cacheKey] = $this->database->selectCollection(
                $collectionName,
                $options
            );
        }

        return $this->collectionsCache[$cacheKey];
    }
919437
public function dropIndexes(array $options = [])
    {
        $command = [
            'dropIndexes' => $this->collectionName,
            'index' => '*',
        ];
        $cursor = $this->executeCommand($command, $options);

        return $cursor->current();
    }
932552
public function insert($collectionName, array $data, array $options = []) {
		$collection = $this->getCollection($collectionName);
		
		if ($this->_profilerEnabled) {
			$message = 'db.' . $collectionName . '.insert(' . json_encode($data) . ');';
			$event   = $this->getProfiler()->startInsert($message);
		}

		$result  = $collection->insert($data, $options);
		$success = (bool) $result['ok'];
		
		if ($this->_profilerEnabled) {
			$success
				? $event->stopSuccess()
				: $event->stopError();
		}
		
		return $success;
	}
705320
public function listIndexes($collectionName, $options = [])
    {
        $this->document = $this->db->getQueryBuilder()->listIndexes($collectionName, $options);

        try {
            $cursor = $this->execute();
        } catch (Exception $e) {
            // The server may return an error if the collection does not exist.
            $notFoundCodes = [
                26, // namespace not found
                60 // database not found
            ];
            if (in_array($e->getCode(), $notFoundCodes, true)) {
                return [];
            }

            throw $e;
        }

        return $cursor->toArray();
    }
927895
public function removeCriteria($criteriaName = '')
    {
        if (!empty($criteriaName)) {
            $this->stack = $this->stack->filter(function (CriteriaInterface $criteria) use ($criteriaName) {
                return !is_a($criteria, $criteriaName);
            });

            return true;
        }

        $this->stack = new Collection();

        return true;
    }
537783
public function deleteDocuments($indexName, $indexType, array $ids)
    {
        $index = $this->getIndex($indexName);
        $type = $index->getType($indexType);

        return $this->getClient()->deleteIds($ids, $index, $type);
    }
420678
public function dropIndex($bucketName, $indexName)
    {
        $bucketName = $this->db->quoteBucketName($bucketName);
        $indexName  = $this->db->quoteColumnName($indexName);

        return "DROP INDEX $bucketName.$indexName";
    }