:doc:`Redshift <../../redshift>` / Client / delete_cluster_security_group

*****************************
delete_cluster_security_group
*****************************



.. py:method:: Redshift.Client.delete_cluster_security_group(**kwargs)

  

  Deletes an Amazon Redshift security group.

   

  .. note::

    

    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 to `Amazon Redshift Cluster Security Groups <https://docs.aws.amazon.com/redshift/latest/mgmt/working-with-security-groups.html>`__ in the *Amazon Redshift Cluster Management Guide*.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteClusterSecurityGroup>`_  


  **Request Syntax**
  ::

    response = client.delete_cluster_security_group(
        ClusterSecurityGroupName='string'
    )
    
  :type ClusterSecurityGroupName: string
  :param ClusterSecurityGroupName: **[REQUIRED]** 

    The name of the cluster security group to be deleted.

    

  
  
  :returns: None
  **Exceptions**
  
  *   :py:class:`Redshift.Client.exceptions.InvalidClusterSecurityGroupStateFault`

  
  *   :py:class:`Redshift.Client.exceptions.ClusterSecurityGroupNotFoundFault`

  