Skip to content

FILTER.DELETE

Mass delete all instances matching a condition.

Syntax

FILTER.DELETE > MODEL > ATTRIBUTE > VALUE > OPERATOR(?)

Arguments

Argument Type Description
MODEL Required Model class
ATTRIBUTE Required Field to match on
VALUE Required Value to match
OPERATOR Optional Comparison: gt, lt, gte, lte

Examples

Simple Delete

-- Delete all balls with Communist regime
FILTER.DELETE > BALL > REGIME > Communist

With Operator

-- Delete all balls with health < 50
FILTER.DELETE > BALL > HEALTH > 50 > lt

See Also