Enrollment

Remove-CPSEnrollment

Synopsis

Remove an enrollment.

Syntax

Remove-CPSEnrollment [-EnrollmentID] <Int32> [-AllowCancelPendingChanges] [[-DeployNotAfter] <String>] [[-DeployNotBefore] <String>] [[-EdgeRCFile] <String>] [[-Section] <String>] [[-AccountSwitchKey] <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]

Description

Removes an enrollment from the CPS. The response type will vary depending on the state of the enrollment.

Deleting an enrollment in the future or when the enrollment has a certificate deployed to the network may return HTTP Status 202 (Accepted).

Deleting an enrollment that hasn't deployed a certificate to the network yet will complete immediately and return HTTP Status 200 (OK).

❗️

Warning: Impact to Property Behavior

If you delete a certificate enrollment that's linked to a CA set and used in a property hostname, requests to your property may stop working correctly. CPS doesn't currently provide warnings before or after deleting an enrollment.

To avoid unintentionally removing a certificate from a property, delete items in this order:

  1. Delete the property hostname.
  2. Remove the enforce​MtlsSettings behavior from the property's rule tree.
  3. Delete the CPS enrollment.
  4. Deactivate the CA set and remove it.

Parameters

‑AccountSwitchKey

An account credential key that lets you move between accounts when using an API client enabled for multiple accounts. To find account switch keys, use Get-AccountSwitchKey.

‑AllowCancelPendingChanges

Cancels all pending changes when updating an enrollment.

‑DeployNotAfter

The date (UTC) after which the enrollment shouldn't be deployed.

‑DeployNotBefore

The date (UTC) before which the enrollment shouldn't be deployed.

‑EdgeRCFile

Your EdgeGrid resource file to authenticate your command. Defaults to ~/.edgerc.

‑EnrollmentID
Required

Enrollment on which to perform the desired operation.

‑Section

The section name in your EdgeGrid resource file to retrieve authentication credentials from. Defaults to default.

Related Links