Builds a SQL statement for dropping an index.

@param string $bucketName
@param string $indexName

@return string the DROP INDEX SQL
420678
public function dropIndex($bucketName, $indexName)
    {
        $bucketName = $this->db->quoteBucketName($bucketName);
        $indexName  = $this->db->quoteColumnName($indexName);

        return "DROP INDEX $bucketName.$indexName";
    }
52571
public function dropIndex($name)
    {
        if (strtolower($name) === 'identity') {
            throw new \LogicException('Unable to remove identity.');
        }

        if (strtolower($name) === 'primary') {
            $sql = <<<SQL
DECLARE @table NVARCHAR(512), @sql NVARCHAR(MAX);

SELECT @table = N%q;

SELECT @sql = 'ALTER TABLE ' + @table 
    + ' DROP CONSTRAINT ' + name + ';'
    FROM sys.key_constraints
    WHERE [type] = 'PK'
    AND [parent_object_id] = OBJECT_ID(@table);

EXEC sp_executeSQL @sql;
SQL;

            $this->db->execute(
                $this->db->getQuery(true)->format($sql, $this->db->replacePrefix($this->getName()))
            );

            return $this->reset();
        }

        if (!$this->hasIndex($name)) {
            return $this;
        }

        $this->db->execute(SqlsrvGrammar::build(
            'DROP INDEX',
            $this->db->getQuery(true)
                ->quoteName($this->getName() . '.' . $name)
        ));

        return $this->reset();
    }
402611
protected function getForeignKeyRemove(array $output, string $indexName): array
    {
        $output[] = sprintf("%s->dropForeignKey('%s')", $this->ind2, $indexName);

        return $output;
    }
908945
public function removeIndex($indexName) {
    $flip = array_flip($this->indexes);
    unset($flip[$indexName]);
    $this->indexes = array_values(array_flip($flip));
  }
1006339
def drop_index(index_name)
			transaction {
				ODBA.storage.drop_index(index_name)
				self.delete(self.indices[index_name]) 
			}
		end
276174
public function dropIndexes($collectionName, $indexes)
    {
        $this->document = $this->db->getQueryBuilder()->dropIndexes($collectionName, $indexes);

        return current($this->execute()->toArray());
    }
1022942
@SuppressFBWarnings("RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT")
    public static void dropIndex(final ODatabaseObject db, final String indexName) {
        // Separated to overcome findbugs false positive "RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT" for dropIndex method.
        db.getMetadata().getIndexManager().dropIndex(indexName);
    }
453613
public boolean createIndex(String indexName) {
        CreateIndexResponse response =
                getClient().admin().indices().prepareCreate(indexName).execute().actionGet();
        return response.isAcknowledged();
    }
545708
public function dropIndex($collection, $indexName, array $options = [])
    {
        $col = $this->db->selectCollection($collection);

        return $col->dropIndex($indexName, $options);
    }
268850
public function createIndex($bucketName, $indexName, $columns, $condition = null, &$params = [], $options = [])
    {
        $this->beginProfile($token = "    > create index $bucketName.$indexName ...");

        $result = $this->db->createIndex($bucketName, $indexName, $columns, $condition, $params, $options);

        $this->endProfile($token);

        return $result;
    }
549861
public function createPrimaryIndex($bucketName, $indexName = null, $options = [])
    {
        return $this->createCommand()->createPrimaryIndex($bucketName, $indexName, $options)->execute();
    }
651887
public function getDropIndexSQL($index, $table = null)
    {
        if ($index instanceof Index) {
            $index = $index->getQuotedName($this);
        } elseif (! is_string($index)) {
            throw new InvalidArgumentException('AbstractPlatform::getDropIndexSQL() expects $index parameter to be string or \Doctrine\DBAL\Schema\Index.');
        }

        return 'DROP INDEX ' . $index;
    }
285147
protected function generateDropIndexSql( $tableName, $indexName )
    {
        if ( $indexName == 'primary' ) // handling primary indexes
        {
            $constraintName = ezcDbSchemaOracleHelper::generateSuffixedIdentName( array( $tableName ), "pkey");
            $this->queries[] = "ALTER TABLE \"$tableName\" DROP CONSTRAINT \"{$constraintName}\"";
        }
        else
        {
            $this->queries[] = "DROP INDEX \"$indexName\"";
        }
    }
1335372
public function dropSchema($schemaName)
    {
        $sql = sprintf("DROP SCHEMA IF EXISTS %s CASCADE;", $this->quoteSchemaName($schemaName));
        $this->execute($sql);
    }
608894
public function buildIndex($bucketName, $indexNames)
    {
        $sql = $this->db->getQueryBuilder()->buildIndex($bucketName, $indexNames);

        return $this->setSql($sql)->setBucketName($bucketName);
    }
97429
@NonNull
  public static Drop dropIndex(@Nullable String keyspace, @NonNull String indexName) {
    return dropIndex(
        keyspace == null ? null : CqlIdentifier.fromCql(keyspace),
        CqlIdentifier.fromCql(indexName));
  }
315762
public function getDropIndexDDL(Index $index)
    {
        $pattern = "
DROP INDEX %s;
";

        return sprintf($pattern, $this->quoteIdentifier($index->getName()));
    }