public static function deleteAll($condition = '', $params = [])
    {
        $command = static::getDb()->createCommand();
        $command->delete(static::indexName(), $condition, $params);

        return $command->execute();
    }
public static function deleteAll($condition = '', $params = [])
    {
        $command = static::getDb()->createCommand();
        $command->delete(static::indexName(), $condition, $params);

        return $command->execute();
    }
public static function deleteAll ( $ condition = '' , $ params = [ ] ) { $ command = static :: getDb ( ) -> createCommand ( ) ; $ command -> delete ( static :: indexName ( ) , $ condition , $ params ) ; return $ command -> execute ( ) ; }
Deletes rows in the index using the provided conditions.

For example, to delete all articles whose status is 3:

```php
Article::deleteAll('status = 3');
```

@param string|array $condition the conditions that will be put in the WHERE part of the DELETE SQL.
Please refer to [[Query::where()]] on how to specify this parameter.
@param array $params the parameters (name => value) to be bound to the query.
@return int the number of rows deleted
Deletes rows in the index using the provided conditions .