ActiveFixture.php
protected function resetIndex()
    {
        $this->db->createCommand([
            'index' => $this->index,
            'type' => $this->type,
            'queryParts' => ['query' => ['match_all' => new \stdClass()]],
        ])->deleteByQuery();
    }
protected function resetIndex()
    {
        $this->db->createCommand([
            'index' => $this->index,
            'type' => $this->type,
            'queryParts' => ['query' => ['match_all' => new \stdClass()]],
        ])->deleteByQuery();
    }
protected function resetIndex ( ) { $ this -> db -> createCommand ( [ 'index' => $ this -> index , 'type' => $ this -> type , 'queryParts' => [ 'query' => [ 'match_all' => new \ stdClass ( ) ] ] , ] ) -> deleteByQuery ( ) ; }
Removes all existing data from the specified index and type.
This method is called before populating fixture data into the index associated with this fixture.
Removes all existing data from the specified index and type . This method is called before populating fixture data into the index associated with this fixture .