Remove

interface Remove

The Remove clause may be used to remove attributes from an item or map and to remove elements from a list. See the low-level DynamoDB documentation for more details on the underlying features and capabilities.

Attributes and elements may be removed by using the unary - operator (or the unaryMinus method):

remove {
-attr["foo"] // Removes the attribute `foo`
-attr["baz"]["bar"] // Removes `baz`'s `bar` entry
-attr["qux"][3] // Removes `qux`'s element at index `3`
}

Properties

Link copied to clipboard
abstract val attr: Attr

Accesses an attribute path reference from a top-level attribute name in this update expression (e.g., attr["foo"] references the "foo" attribute of items being updated)

Functions

Link copied to clipboard
abstract operator fun AttributePath.unaryMinus()

Adds an update instruction for removing this attribute, entry, or element