:doc:`OpenSearchServiceServerless <../../opensearchserverless>` / Client / delete_collection_group

***********************
delete_collection_group
***********************



.. py:method:: OpenSearchServiceServerless.Client.delete_collection_group(**kwargs)

  

  Deletes a collection group. You can only delete empty collection groups that contain no collections. For more information, see `Creating and managing Amazon OpenSearch Serverless collections <https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-manage.html>`__.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/opensearchserverless-2021-11-01/DeleteCollectionGroup>`_  


  **Request Syntax**
  ::

    response = client.delete_collection_group(
        id='string',
        clientToken='string'
    )
    
  :type id: string
  :param id: **[REQUIRED]** 

    The unique identifier of the collection group to delete.

    

  
  :type clientToken: string
  :param clientToken: 

    Unique, case-sensitive identifier to ensure idempotency of the request.

    This field is autopopulated if not provided.

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`OpenSearchServiceServerless.Client.exceptions.InternalServerException`

  
  *   :py:class:`OpenSearchServiceServerless.Client.exceptions.ConflictException`

  
  *   :py:class:`OpenSearchServiceServerless.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`OpenSearchServiceServerless.Client.exceptions.ValidationException`

  