awswrangler.dynamodb.delete_items¶
- awswrangler.dynamodb.delete_items(items: list[dict[str, Any]], table_name: str, boto3_session: Session | None = None) None ¶
Delete all items in the specified DynamoDB table.
Note
This function has arguments which can be configured globally through wr.config or environment variables:
Check out the Global Configurations Tutorial for details.
- Parameters:
items (
list
[dict
[str
,Any
]]) – List which contains the items that will be deleted.table_name (
str
) – Name of the Amazon DynamoDB table.boto3_session (
Session
|None
) – The default boto3 session will be used if boto3_session isNone
.
- Return type:
None
Examples
Writing rows of DataFrame
>>> import awswrangler as wr >>> wr.dynamodb.delete_items( ... items=[{'key': 1}, {'key': 2, 'value': 'Hello'}], ... table_name='table' ... )