public static deleteAll ( array $condition = [], array $options = [] ) : integer | ||
$condition | array | description of the objects to delete. Please refer to [[Query::where()]] on how to specify this parameter. |
$options | array | list of options in format: optionName => optionValue. |
return | integer | the number of documents deleted. |
public static function deleteAll($condition = [], $options = [])
{
return static::getCollection()->remove($condition, $options);
}