:doc:`DirectoryService <../../ds>` / Client / deregister_certificate

**********************
deregister_certificate
**********************



.. py:method:: DirectoryService.Client.deregister_certificate(**kwargs)

  

  Deletes from the system the certificate that was registered for secure LDAP or client certificate authentication.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DeregisterCertificate>`_  


  **Request Syntax**
  ::

    response = client.deregister_certificate(
        DirectoryId='string',
        CertificateId='string'
    )
    
  :type DirectoryId: string
  :param DirectoryId: **[REQUIRED]** 

    The identifier of the directory.

    

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

    The identifier of the certificate.

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`DirectoryService.Client.exceptions.DirectoryUnavailableException`

  
  *   :py:class:`DirectoryService.Client.exceptions.DirectoryDoesNotExistException`

  
  *   :py:class:`DirectoryService.Client.exceptions.CertificateDoesNotExistException`

  
  *   :py:class:`DirectoryService.Client.exceptions.CertificateInUseException`

  
  *   :py:class:`DirectoryService.Client.exceptions.UnsupportedOperationException`

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

  
  *   :py:class:`DirectoryService.Client.exceptions.ClientException`

  
  *   :py:class:`DirectoryService.Client.exceptions.ServiceException`

  