Skip to content

Instantly share code, notes, and snippets.

@pictolearn
Last active June 17, 2019 06:50
Show Gist options
  • Save pictolearn/d412abbbe5a0925eb459d72476693870 to your computer and use it in GitHub Desktop.
Save pictolearn/d412abbbe5a0925eb459d72476693870 to your computer and use it in GitHub Desktop.
deleting a DynamoDB using a python script
# boto3, an AWS SDK package # Delete an existing Table
import boto3
# resource request service and region are set
dynamodb = boto3.resource('dynamodb', region_name='us-east-1')
input1=input("enter table :\t")
table = dynamodb.Table(input1)
# a function to delete a table
table.delete()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment