Created
November 23, 2021 23:20
-
-
Save edwint88/0fadef69555b62a613bc16a766dff44c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aws dynamodb scan --table-name $TABLE_NAME --attributes-to-get "$KEY" \ | |
--query "Items[].$KEY.S" --output text | \ | |
tr "\t" "\n" | \ | |
xargs -t -I keyvalue aws dynamodb delete-item --table-name $TABLE_NAME \ | |
--key "{\"$KEY\": {\"S\": \"keyvalue\"}}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment