Skip to content

Instantly share code, notes, and snippets.

@BuonOmo
BuonOmo / aws-dynamo-db-delete-all-items.zsh
Last active September 8, 2023 15:07
Delete all items in a dynamo db table
#!/usr/bin/env zsh
# I'm using jq to parse json. I really suggest using it.
# I'm using parallel for faster results, you could use xargs or a for loop if you don't have parallel.
main() (
set -eux
local options="--profile some-profile"
local key='id'
local table='table'