:doc:`CustomerProfiles <../../customer-profiles>` / Client / delete_segment_definition

*************************
delete_segment_definition
*************************



.. py:method:: CustomerProfiles.Client.delete_segment_definition(**kwargs)

  

  Deletes a segment definition from the domain.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/customer-profiles-2020-08-15/DeleteSegmentDefinition>`_  


  **Request Syntax**
  ::

    response = client.delete_segment_definition(
        DomainName='string',
        SegmentDefinitionName='string'
    )
    
  :type DomainName: string
  :param DomainName: **[REQUIRED]** 

    The unique name of the domain.

    

  
  :type SegmentDefinitionName: string
  :param SegmentDefinitionName: **[REQUIRED]** 

    The unique name of the segment definition.

    

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

    
    ::

      {
          'Message': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **Message** *(string) --* 

        A message that indicates the delete request is done.

        
  
  **Exceptions**
  
  *   :py:class:`CustomerProfiles.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`CustomerProfiles.Client.exceptions.InternalServerException`

  
  *   :py:class:`CustomerProfiles.Client.exceptions.BadRequestException`

  
  *   :py:class:`CustomerProfiles.Client.exceptions.ThrottlingException`

  
  *   :py:class:`CustomerProfiles.Client.exceptions.AccessDeniedException`

  