yii\sphinx\ActiveRecord::deleteAll PHP Méthode

deleteAll() public static méthode

For example, to delete all articles whose status is 3: php Article::deleteAll('status = 3');
public static deleteAll ( string | array $condition = '', array $params = [] ) : integer
$condition string | array 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.
$params array the parameters (name => value) to be bound to the query.
Résultat integer the number of rows deleted
    public static function deleteAll($condition = '', $params = [])
    {
        $command = static::getDb()->createCommand();
        $command->delete(static::indexName(), $condition, $params);
        return $command->execute();
    }