prune_table
Clear a DynamoDB table by deleting all items or only those matching a filter, while keeping the table structure intact. Confirmation required to prevent accidental data loss.
Instructions
Delete all items (or filtered items) from a DynamoDB table.
Scans the table and batch-deletes all matching items. The table itself is preserved — only items are removed. Requires confirm=true.
WARNING: This is a destructive operation. Without a filter_expression, ALL items in the table will be permanently deleted.
When to use:
To clear all data from a table while keeping the table structure
To delete items matching specific criteria (with filter_expression)
For test data cleanup
When NOT to use:
To delete the table itself (not supported by this server)
To delete a single item (use delete_item instead)
Returns: JSON with the count of items deleted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |