SimpleDB.Client.
delete_attributes
(**kwargs)¶Deletes one or more attributes associated with an item. If all attributes of the item are deleted, the item is deleted.
DeleteAttributes
is an idempotent operation; running it multiple times on the same item or attribute does not result in an error response.
Because Amazon SimpleDB makes multiple copies of item data and uses an eventual consistency update model, performing a GetAttributes or Select operation (read) immediately after a DeleteAttributes
or PutAttributes operation (write) might not return updated item data.
See also: AWS API Documentation
Request Syntax
response = client.delete_attributes(
DomainName='string',
ItemName='string',
Attributes=[
{
'Name': 'string',
'AlternateNameEncoding': 'string',
'Value': 'string',
'AlternateValueEncoding': 'string'
},
],
Expected={
'Name': 'string',
'Value': 'string',
'Exists': True|False
}
)
A list of Attributes. Similar to columns on a spreadsheet, attributes represent categories of data that can be assigned to items.
The update condition which, if specified, determines whether the specified attributes will be deleted or not. The update condition must be satisfied in order for this request to be processed and the attributes to be deleted.
The name of the attribute involved in the condition.
The value of an attribute. This value can only be specified when the Exists
parameter is equal to true
.
A value specifying whether or not the specified attribute must exist with the specified value in order for the update condition to be satisfied. Specify true
if the attribute must exist for the update condition to be satisfied. Specify false
if the attribute should not exist in order for the update condition to be satisfied.
None
Exceptions
SimpleDB.Client.exceptions.InvalidParameterValue
SimpleDB.Client.exceptions.MissingParameter
SimpleDB.Client.exceptions.NoSuchDomain
SimpleDB.Client.exceptions.AttributeDoesNotExist