---
updatedAt: 2026-03-01T18:57:46.000Z
agentTools:
  siteIndex: https://techdocs.akamai.com/llms.txt
  projectIndex: https://techdocs.akamai.com/cps/llms.txt
---

# Remove an enrollment

Removes an enrollment from CPS. The response code varies depending on the state of the enrollment. Deleting an enrollment in the future, or deleting when the enrollment has a certificate deployed to the network, may result in a 202 response. Deleting an enrollment that hasn't yet deployed any certificate to the network responds immediately with a 200 code.

# OpenAPI definition

```json
{
  "externalDocs": {
    "description": "See documentation for Akamai's Certificate Provisioning System API",
    "url": "https://techdocs.akamai.com/cps/reference"
  },
  "info": {
    "license": {
      "name": "Apache 2.0",
      "url": "https://www.apache.org/licenses/LICENSE-2.0.html"
    },
    "title": "Enrollments",
    "version": "v2"
  },
  "openapi": "3.0.0",
  "paths": {
    "/enrollments/{enrollmentId}": {
      "delete": {
        "description": "Removes an enrollment from CPS. The response code varies depending on the state of the enrollment. Deleting an enrollment in the future, or deleting when the enrollment has a certificate deployed to the network, may result in a 202 response. Deleting an enrollment that hasn't yet deployed any certificate to the network responds immediately with a 200 code.",
        "externalDocs": {
          "description": "See documentation for this operation in Akamai's Certificate Provisioning System API",
          "url": "https://techdocs.akamai.com/cps/reference/delete-enrollment"
        },
        "operationId": "delete-enrollment",
        "parameters": [
          {
            "description": "Cancels all pending changes when updating an enrollment.",
            "in": "query",
            "name": "allow-cancel-pending-changes",
            "schema": {
              "example": true,
              "type": "boolean"
            },
            "x-akamai": {
              "file-path": "parameters/allow-cancel-pending-changes-query.yaml"
            }
          },
          {
            "description": "Don't deploy after this date (UTC).",
            "in": "query",
            "name": "deploy-not-after",
            "schema": {
              "example": "2021-01-31",
              "type": "string"
            },
            "x-akamai": {
              "file-path": "parameters/deploy-not-after-query.yaml"
            }
          },
          {
            "description": "Don't deploy before this date (UTC).",
            "in": "query",
            "name": "deploy-not-before",
            "schema": {
              "example": "2021-01-31",
              "type": "string"
            },
            "x-akamai": {
              "file-path": "parameters/deploy-not-before-query.yaml"
            }
          },
          {
            "description": "For customers who manage more than one account, this [runs the operation from another account](https://techdocs.akamai.com/developer/docs/manage-many-accounts-with-one-api-client). The Identity and Access Management API provides a [list of available account switch keys](https://techdocs.akamai.com/iam-api/reference/get-client-account-switch-keys).",
            "in": "query",
            "name": "accountSwitchKey",
            "required": false,
            "schema": {
              "example": "1-5C0YLB:1-8BYUX",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/vnd.akamai.cps.enrollment-status.v1+json": {
                "example": {
                  "changes": [
                    "/cps/v2/enrollments/10002/changes/10002"
                  ],
                  "enrollment": "/cps/v2/enrollments/10002"
                },
                "schema": {
                  "additionalProperties": false,
                  "description": "Encapsulates information for enrollment status. ",
                  "properties": {
                    "changes": {
                      "description": "Identifies the modification taken on the enrollment.",
                      "items": {
                        "minLength": 1,
                        "type": "string"
                      },
                      "minItems": 0,
                      "type": "array"
                    },
                    "enrollment": {
                      "description": "Identifies the enrollment modified.",
                      "minLength": 1,
                      "type": "string"
                    }
                  },
                  "required": [
                    "changes",
                    "enrollment"
                  ],
                  "type": "object",
                  "x-akamai": {
                    "file-path": "schemas/enrollment-status.v1.yaml"
                  }
                }
              }
            },
            "description": "The response reflects the enrollment was removed from CPS."
          },
          "202": {
            "content": {
              "application/vnd.akamai.cps.enrollment-status.v1+json": {
                "example": {
                  "changes": [
                    "/cps/v2/enrollments/10002/changes/10002"
                  ],
                  "enrollment": "/cps/v2/enrollments/10002"
                },
                "schema": {
                  "additionalProperties": false,
                  "description": "Encapsulates information for enrollment status. ",
                  "properties": {
                    "changes": {
                      "description": "Identifies the modification taken on the enrollment.",
                      "items": {
                        "minLength": 1,
                        "type": "string"
                      },
                      "minItems": 0,
                      "type": "array"
                    },
                    "enrollment": {
                      "description": "Identifies the enrollment modified.",
                      "minLength": 1,
                      "type": "string"
                    }
                  },
                  "required": [
                    "changes",
                    "enrollment"
                  ],
                  "type": "object",
                  "x-akamai": {
                    "file-path": "schemas/enrollment-status.v1.yaml"
                  }
                }
              }
            },
            "description": "The response reflects the resource was accepted."
          }
        },
        "summary": "Remove an enrollment",
        "tags": [
          "Enrollments"
        ]
      },
      "parameters": [
        {
          "description": "Enrollment on which to perform the desired operation.",
          "in": "path",
          "name": "enrollmentId",
          "required": true,
          "schema": {
            "example": 10000,
            "type": "integer"
          },
          "x-akamai": {
            "file-path": "parameters/enrollment-id-path.yaml"
          }
        }
      ],
      "x-akamai": {
        "file-path": "paths/enrollment.yaml",
        "path-info": "/enrollments/{enrollmentId}"
      }
    }
  },
  "servers": [
    {
      "url": "https://{hostname}/cps/v2"
    }
  ],
  "tags": [
    {
      "description": "Manage your certificate enrollments.",
      "name": "Enrollments"
    }
  ],
  "x-akamai": {
    "auth-type": "EDGE_GRID",
    "file-path": "enrollments.yaml"
  },
  "x-readme": {
    "explorer-enabled": false,
    "samples-languages": [
      "curl",
      "python",
      "node"
    ]
  }
}
```

# Sibling pages

* [Create an enrollment](https://techdocs.akamai.com/cps/reference/post-enrollment.md)
* [List enrollments](https://techdocs.akamai.com/cps/reference/get-enrollments.md)
* [Get an enrollment](https://techdocs.akamai.com/cps/reference/get-enrollment.md)
* [Update an enrollment](https://techdocs.akamai.com/cps/reference/put-enrollment.md)
* [Get DV history](https://techdocs.akamai.com/cps/reference/get-dv-history.md)
* [Get certificate history](https://techdocs.akamai.com/cps/reference/get-history-certificates.md)