:doc:`CognitoIdentityProvider <../../cognito-idp>` / Client / delete_user_pool_domain

***********************
delete_user_pool_domain
***********************



.. py:method:: CognitoIdentityProvider.Client.delete_user_pool_domain(**kwargs)

  

  Given a user pool ID and domain identifier, deletes a user pool domain. After you delete a user pool domain, your managed login pages and authorization server are no longer available.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DeleteUserPoolDomain>`_  


  **Request Syntax**
  ::

    response = client.delete_user_pool_domain(
        Domain='string',
        UserPoolId='string'
    )
    
  :type Domain: string
  :param Domain: **[REQUIRED]** 

    The domain that you want to delete. For custom domains, this is the fully-qualified domain name like ``auth.example.com``. For Amazon Cognito prefix domains, this is the prefix alone, like ``myprefix``.

    

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

    The ID of the user pool where you want to delete the domain.

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`CognitoIdentityProvider.Client.exceptions.NotAuthorizedException`

  
  *   :py:class:`CognitoIdentityProvider.Client.exceptions.InvalidParameterException`

  
  *   :py:class:`CognitoIdentityProvider.Client.exceptions.ConcurrentModificationException`

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

  
  *   :py:class:`CognitoIdentityProvider.Client.exceptions.InternalErrorException`

  