Deletion
Syntax
$object.delete()
Description
Deletes the given object
or the given set of objects.
Only business objects can be deleted. If the delete function is called on a primitive value like a string, an error will be generated. For simplicity, it is allowed to call delete()
on null
. Such a call has no effect.
Parameter
Name | Type | Description | Mandatory | Default |
---|---|---|---|---|
object | Business object/set | A single or a set of objects to be deleted. | yes |
Examples
Deletion of a set
all(`my.module:MyType`)
.filter(x -> $x.get(`my.module:MyType#myProp`) < 5)
.delete()
Output: None
Deletes all objects from `my.module:MyType`
, whose value in myProp
is less than 5.