Deleting a subnet group
If you decide that you no longer need your subnet group, you can delete it. You cannot delete a subnet group if it is currently in use by a cache.
The following procedures show you how to delete a subnet group.
Deleting a subnet group (Console)
To delete a subnet group
-
Sign in to the Amazon Web Services Management Console and open the ElastiCache console at https://console.amazonaws.cn/elasticache/
. -
In the navigation pane, choose Subnet groups.
-
In the list of subnet groups, choose the one you want to delete and then choose Delete.
-
When you are asked to confirm this operation, type the name of the subnet group in the text input field and choose Delete.
Deleting a subnet group (Amazon CLI)
Using the Amazon CLI, call the command delete-cache-subnet-group with the following parameter:
-
--cache-subnet-group-name
mysubnetgroup
For Linux, OS X, or Unix:
aws elasticache delete-cache-subnet-group \ --cache-subnet-group-name
mysubnetgroup
For Windows:
aws elasticache delete-cache-subnet-group ^ --cache-subnet-group-name
mysubnetgroup
This command produces no output.
For more information, see the Amazon CLI topic delete-cache-subnet-group.