DeleteSubnetGroup - Amazon DynamoDB


Deletes a subnet group.


You cannot delete a subnet group if it is associated with any DAX clusters.

Request Syntax

{ "SubnetGroupName": "string" }

Request Parameters

The request accepts the following data in JSON format.


In the following list, the required parameters are described first.


The name of the subnet group to delete.

Type: String

Required: Yes

Response Syntax

{ "DeletionMessage": "string" }

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.


A user-specified message for this action (i.e., a reason for deleting the subnet group).

Type: String


For information about the errors that are common to all actions, see Common Errors.


The specified service linked role (SLR) was not found.

HTTP Status Code: 400


The specified subnet group is currently in use.

HTTP Status Code: 400


The requested subnet group name does not refer to an existing subnet group.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: