Last active
June 17, 2019 06:50
-
-
Save pictolearn/d412abbbe5a0925eb459d72476693870 to your computer and use it in GitHub Desktop.
deleting a DynamoDB using a python script
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
# 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