Clear an index.

@param string $index
484056
public function clear($index)
    {
        $this->deleteInClient($index);
        $this->createInClient($index);

        $this->indexer();
        $this->nodeIndexerChain->getIndexer($index)->bulkMarkForReindex();
    }
69713
protected function deleteInClient($index)
    {
        $namespace      = $this->client->indices();
        $indexRealname  = $this->getIndexRealname($index);

        if ($namespace->exists(['index' => $indexRealname])) {
            $namespace->delete(['index' => $indexRealname]);
        }
    }
1265916
def delete(index)
      index = self.index(index) unless index.is_a?(Integer)
      stack.delete_at(index)
    end
1250387
public function remove(string $index): bool
    {
        $this->withIndexFilter($index);

        $deleted = $this->createDeleteBuilder()->execute();

        $this->clearFetchParameters();

        return (int)$deleted > 0;
    }
827200
public function clearIndex($indexName = null)
    {
        $indexName = $this->resolveIndexName($indexName);

        $this->elasticsearch->indices()->delete(['index' => $indexName]);
    }
179388
public void clearEditText(int index) {
		if(config.commandLogging){
			Log.d(config.commandLoggingTag, "clearEditText("+index+")");
		}
		
		textEnterer.setEditText(waiter.waitForAndGetView(index, EditText.class), "");
	}
165760
public function clear()
    {
        $this->list = null;
        if (is_array($this->secondary_indexes)) {
            foreach ($this->secondary_indexes as $index) {
                $index->clear();
            }
        }
    }
641388
public function removeByIndex($indices)
    {
        if (!is_array($indices)) {
            $indices = array($indices);
        }

        $indices = array_unique($indices);

        $allItems = $this->getAll();
        foreach ($indices as $index) {
            unset($allItems[$index]);
        }

        $this->setAll(array_values($allItems));
    }
275623
public function remove($index) {
        $element = $this->get($index);
        if (!is_null($element)) { array_splice($this->_elements, $index, 1); }
        return $element;
    }
757128
public static function remove(string $index):int
    {
        unset(self::$framework_paths[$index]);
        if (isset(self::$framework_paths[$index])) {
            return (0);
        } else {
            return (1);
        }
    }
294709
public function remove($index)
    {
        if (!$index instanceof EntityInterface) {
            $index = $this->getRepository()->get($index);
        }
        
        return $this->findAndRemove($index);
    }
1021802
public void removeAt(int index) {
        System.arraycopy(mKeys, index + 1, mKeys, index, mSize - (index + 1));
        System.arraycopy(mValues, index + 1, mValues, index, mSize - (index + 1));
        mSize--;
    }
850182
public function setIndex($index)
    {
        if ($this->index !== $index) {
            $this->index = $index;
            $this->addOrUpdate();
        }
    }
503117
public function removeIndex( $index )
	{
		if( !isset( $this->list[$index] ) )
			throw new DomainException( 'Item with Index '.$index.' is not existing.' );
		unset( $this->list[$index] );
		return $this->write();
	}
1074562
public function removeIndex($index)
    {
        if ($this->hasIndex($index)) {
            unset($this->_items[$index]);
            $this->_iterator = null;
            return true;
        }
        return false;
    }
194077
private function _deleteRecordFromDBF($index)
    {
        if ($this->DBFFile !== null && @dbase_delete_record($this->DBFFile, $index)) {
            dbase_pack($this->DBFFile);
        }
    }
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;
    }