Drop index
@return mixed
168179
public function drop()
    {

        $params = [
            'index' => $this->name,
            'client' => ['ignore' => $this->ignores]
        ];

        return $this->connection->indices()->delete($params);
    }
608107
public function deleteIndex()
	{
		$path = rtrim(Config::get('search.connections.zend.path'), '/') . '/' . $this->name;
		if (!file_exists($path) || !is_dir($path)) {
			return false;
		}
		
		$this->rmdir($path);
		$this->index = null;
		
		return true;
	}
226891
function drop() {
		$out=$this->db->drop();
		if ($this->log!==FALSE) {
			if ($this->legacy)
				$this->db->setprofilinglevel(2);
			else
				$this->db->command(['profile'=>2]);
		}
		return $out;
	}
571161
function destroy(){
		while( $Child = $this->pop() ){
			$Child->destroy();
		}	
		$Parent = $this->get_parent() and $Parent->remove( $this );
		unset( self::$reg[$this->idx] );
		$this->idx = null;
		return $Parent;
	}
117671
public function getDropIndexDDL(Index $index)
    {
        if ($index instanceof Unique) {
            $pattern = "
    ALTER TABLE %s DROP CONSTRAINT %s;
    ";

            return sprintf($pattern,
                $this->quoteIdentifier($index->getTable()->getName()),
                $this->quoteIdentifier($index->getName())
            );
        } else {
            return parent::getDropIndexDDL($index);
        }
    }
103087
public function dropColumn() {
        $columns = func_get_args();
        foreach ($columns as $column) {
            $this->set($column);
        }
        return $this->command()->execute($this->getDropColumnSql());
    }
233182
public function dropDatabase()
    {
        $this->document = $this->db->getQueryBuilder()->dropDatabase();

        $result = current($this->execute()->toArray());
        return $result['ok'] > 0;
    }
684389
def drop_index(self, keep_model=True):
        """"""
        self.check_session()
        result = self.session.drop_index(keep_model)
        if self.autosession:
            self.commit()
        return result
627542
public function drop($index)
    {
        $indexes = func_get_args();

        foreach ($indexes as $index) {
            $index = is_array($index) ? $this->prepareIndex($index) : $index;

            $this->collection->deleteIndex($index);
        }

        return $this;
    }
927214
public function dropTable()
    {
        $sql = $this->getSql();

        $dropTable = new DropTable($this->getTableName());

        $sql->getAdapter()->query($sql->getSqlStringForSqlObject($dropTable),
            Adapter::QUERY_MODE_EXECUTE
        );

        return $this;
    }
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;
    }
892676
protected function dropIndexes()
    {
        foreach ($this->sortedTables() as $table) {
            if ($table->exists()) {
                $table->save(HandlerInterface::DROP_INDEXES, false);
            }
        }
    }
520865
public function actionDelete()
    {
        if ($this->findModel()->delete()) {
            \Yii::$app->getSession()->setFlash('success', $this->getFlashMsg('success'));;
        } else {
            \Yii::$app->getSession()->setFlash('error', $this->getFlashMsg('error'));
        }
        return $this->redirect(['index']);
    }
1044043
public function pop()
    {
        $this->throwExceptionIfEmpty();

        $arrayCopy = $this->getArrayCopy();
        $lastElement = array_pop($arrayCopy);
        $this->exchangeArray($arrayCopy);
        return $lastElement;
    }
50760
public function dropPrimaryIndex($bucketName)
    {
        $this->beginProfile($token = "    > drop index $bucketName ...");

        $result = $this->db->dropPrimaryIndex($bucketName);

        $this->endProfile($token);

        return $result;
    }
1059038
public function delete($index)
    {
        $request = $this->createRequestInstance(self::INDEX_DELETE, $index, null);

        return $this->client->send($request);
    }
1344837
protected function removeAt($index)
    {
        if ($this->getReadOnly()) {
            throw new Exception('只读list，不允许执行移除操作', 100100505);
        }

        if ($index >= 0 && $index < $this->_count) {
            $this->_count--;
            if ($index === $this->_count) {
                return array_pop($this->_data);
            } else {
                $item = $this->_data[$index];
                array_splice($this->_data, $index, 1);
                return $item;
            }
        } else {
            throw new Exception(str_cover('List索引"{index}"已超出范围', [
                '{index}' => $index,
            ]), 100100506);
        }
    }