DeleteAttributes

Deletes one or more attributes associated with the item. If all attributes of an item are deleted, the item is deleted.

[Note]Note

If you specify DeleteAttributes without attributes or values, all the attributes for the item are deleted.

DeleteAttributes is an idempotent operation; running it multiple times on the same item or attribute does not result in an error response.

Name Description Required?
ItemName

The name of the item.

Type: String

Yes

Attribute.X.Name (REST)

<Attribute><Name>... </Name></Attribute> (SOAP)

The name of the attribute.

Type: String

No

Attribute.X.Value (REST)

<Attribute><Value>... </Value></Attribute> (SOAP)

The name of the attribute value (for multi-valued attributes).

Type: String

No
DomainName

The name of the domain in which to perform the operation.

Type: String

Yes
[Note]Note

Because Amazon SimpleDB makes multiple copies of your data and uses an eventual consistency update model, performing a GetAttributes or Query request (read) immediately after a DeleteAttributes or PutAttributes request (write) might not return the updated data.

See Common Response Elements.

Error Description
InvalidParameterValue Value (" + value + ") for parameter Name is invalid. Value exceeds maximum length of 1024.
InvalidParameterValue Value (" + value + ") for parameter Value is invalid. Value exceeds maximum length of 1024.
InvalidParameterValue Value (" + value + ") for parameter Item is invalid. Value exceeds max length of 1024.
MissingParameter The request must contain the parameter DomainName.
MissingParameter The request must contain the parameter ItemName.
NoSuchDomain The specified domain does not exist.