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

******************
delete_profile_key
******************



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

  

  Removes a searchable key from a customer profile.

  

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


  **Request Syntax**
  ::

    response = client.delete_profile_key(
        ProfileId='string',
        KeyName='string',
        Values=[
            'string',
        ],
        DomainName='string'
    )
    
  :type ProfileId: string
  :param ProfileId: **[REQUIRED]** 

    The unique identifier of a customer profile.

    

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

    A searchable identifier of a customer profile.

    

  
  :type Values: list
  :param Values: **[REQUIRED]** 

    A list of key values.

    

  
    - *(string) --* 

    

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

    The unique name of the domain.

    

  
  
  :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.BadRequestException`

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

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

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

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

  