Finally, a database instance can be deleted by invoking the delete_db_instance() function call by passing the database instance identifier to it.
The following code demonstrates how to delete a database instance:
#!/usr/bin/env python
import boto3
rds = boto3.client('rds')
try:
response = rds.delete_db_instance(
DBInstanceIdentifier="packtpub",
SkipFinalSnapshot=True)
print response
except Exception as error:
print error
This concludes the basic operations on the Amazon RDS instance using application programming.