Deletes an Amazon Redshift security group.
![]() |
---|
You cannot delete a security group that is associated with any clusters. You cannot delete the default security group. |
For information about managing security groups, go toAmazon Redshift Cluster Security Groups in the Amazon Redshift Management Guide.

C# |
public DeleteClusterSecurityGroupResponse DeleteClusterSecurityGroup( DeleteClusterSecurityGroupRequest request )

- request (DeleteClusterSecurityGroupRequest)
- Container for the necessary parameters to execute the DeleteClusterSecurityGroup service method.

The response from the DeleteClusterSecurityGroup service method, as returned by Redshift.

Exception | Condition |
---|---|
ClusterSecurityGroupNotFoundException |
The cluster security group name does not refer to an existing cluster
security group.
|
InvalidClusterSecurityGroupStateException |
The state of the cluster security group is not ![]() available |