Remove-EntraTrustedCertificateAuthority

Removes a trusted certificate authority.

Syntax

Remove-EntraTrustedCertificateAuthority
       -CertificateAuthorityInformation <CertificateAuthorityInformation>
      [<CommonParameters>]

Description

The Remove-EntraTrustedCertificateAuthority cmdlet removes a trusted certificate authority from Microsoft Entra ID.

Examples

Example 1: Remove the trusted certificate authorities that are defined in your directory

Connect-Entra -Scopes 'Organization.ReadWrite.All'
$cer = Get-EntraTrustedCertificateAuthority #Get the CertificateAuthorityInformation object
Remove-EntraTrustedCertificateAuthority -CertificateAuthorityInformation $cer[0]

Name                           Value
----                           -----
@odata.context                 https://graph.microsoft.com/v1.0/$metadata#certificateBasedAuthConfiguration/$entity
certificateAuthorities         {System.Collections.Hashtable, System.Collections.Hashtable, System.Collections.Hashtable...}
id                             0a0a0a0a-1111-bbbb-2222-3c3c3c3c3c3c

This command deletes the trusted certificate authorities that are defined in your directory.

Parameters

-CertificateAuthorityInformation

Specifies a CertificateAuthorityInformation object.

Type:CertificateAuthorityInformation
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False