---
updatedAt: 2026-03-01T18:46:55.000Z
agentTools:
  siteIndex: https://techdocs.akamai.com/llms.txt
  projectIndex: https://techdocs.akamai.com/cloudlets/llms.txt
---

# Remove a policy version

Deletes a version of a shared policy. You can't delete a policy if it's active on the staging or production network. When you remove a policy version, version numbers aren't reallocated. For example, a policy has 15 versions, and you delete versions 14 and 15. The next version created would be 16, not 14.

# OpenAPI definition

```json
{
  "externalDocs": {
    "description": "See documentation for Akamai's Cloudlets API",
    "url": "https://techdocs.akamai.com/cloudlets/reference"
  },
  "info": {
    "license": {
      "name": "Apache 2.0",
      "url": "https://www.apache.org/licenses/LICENSE-2.0.html"
    },
    "title": "Policy versions",
    "version": "v3"
  },
  "openapi": "3.0.0",
  "paths": {
    "/policies/{policyId}/versions/{version}": {
      "delete": {
        "description": "Deletes a version of a shared policy. You can't delete a policy if it's active on the staging or production network. When you remove a policy version, version numbers aren't reallocated. For example, a policy has 15 versions, and you delete versions 14 and 15. The next version created would be 16, not 14.",
        "externalDocs": {
          "description": "See documentation for this operation in Akamai's Cloudlets API",
          "url": "https://techdocs.akamai.com/cloudlets/reference/delete-policy-version"
        },
        "operationId": "delete-policy-version",
        "parameters": [
          {
            "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": {
          "204": {
            "content": {},
            "description": "The policy version is deleted."
          },
          "403": {
            "content": {
              "application/problem+json": {
                "example": {
                  "errors": [
                    {
                      "detail": "User does not have view capability for Edge Redirector Cloudlet in group 120.",
                      "title": "Access Denied"
                    }
                  ],
                  "instance": "cc6e9850-c426-4e17-8e33-cab96beccad8",
                  "status": 403,
                  "title": "Access Denied",
                  "type": "/cloudlets/v3/error-types/access-denied"
                },
                "schema": {
                  "additionalProperties": true,
                  "properties": {
                    "errors": {
                      "description": "A nested error object.",
                      "items": {
                        "additionalProperties": true,
                        "properties": {
                          "instance": {
                            "description": "A URI path that identifies the specific occurrence of the problem.",
                            "type": "string"
                          },
                          "status": {
                            "description": "HTTP response status code.",
                            "type": "integer"
                          },
                          "title": {
                            "description": "Short descriptive title of the problem response.",
                            "type": "string"
                          },
                          "type": {
                            "description": "A URI path that identifies the problem type.",
                            "type": "string"
                          }
                        },
                        "required": [
                          "instance",
                          "status",
                          "title",
                          "type",
                          "errors"
                        ],
                        "type": "object",
                        "x-akamai": {
                          "file-path": "schemas/error-nested.yaml"
                        }
                      },
                      "type": "array"
                    },
                    "instance": {
                      "description": "A URI path that identifies the specific occurrence of the problem.",
                      "type": "string"
                    },
                    "status": {
                      "description": "HTTP response status code.",
                      "type": "integer"
                    },
                    "title": {
                      "description": "Short descriptive title of the problem response.",
                      "type": "string"
                    },
                    "type": {
                      "description": "A URI path that identifies the problem type.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "instance",
                    "status",
                    "title",
                    "type",
                    "errors"
                  ],
                  "type": "object",
                  "x-akamai": {
                    "file-path": "schemas/error.yaml"
                  }
                }
              }
            },
            "description": "[No permission to access this resource.](ref:403)",
            "x-akamai": {
              "file-path": "errors/403-version.yaml"
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "example": {
                  "errors": [
                    {
                      "detail": "Policy Version `11` not found in Policy `100000`.",
                      "title": "Not found"
                    }
                  ],
                  "instance": "03d51e0a-a50f-41e7-85ad-1a0584a58946",
                  "status": 404,
                  "title": "Not found",
                  "type": "/cloudlets/v3/error-types/not-found"
                },
                "schema": {
                  "additionalProperties": true,
                  "properties": {
                    "errors": {
                      "description": "A nested error object.",
                      "items": {
                        "additionalProperties": true,
                        "properties": {
                          "instance": {
                            "description": "A URI path that identifies the specific occurrence of the problem.",
                            "type": "string"
                          },
                          "status": {
                            "description": "HTTP response status code.",
                            "type": "integer"
                          },
                          "title": {
                            "description": "Short descriptive title of the problem response.",
                            "type": "string"
                          },
                          "type": {
                            "description": "A URI path that identifies the problem type.",
                            "type": "string"
                          }
                        },
                        "required": [
                          "instance",
                          "status",
                          "title",
                          "type",
                          "errors"
                        ],
                        "type": "object",
                        "x-akamai": {
                          "file-path": "schemas/error-nested.yaml"
                        }
                      },
                      "type": "array"
                    },
                    "instance": {
                      "description": "A URI path that identifies the specific occurrence of the problem.",
                      "type": "string"
                    },
                    "status": {
                      "description": "HTTP response status code.",
                      "type": "integer"
                    },
                    "title": {
                      "description": "Short descriptive title of the problem response.",
                      "type": "string"
                    },
                    "type": {
                      "description": "A URI path that identifies the problem type.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "instance",
                    "status",
                    "title",
                    "type",
                    "errors"
                  ],
                  "type": "object",
                  "x-akamai": {
                    "file-path": "schemas/error.yaml"
                  }
                }
              }
            },
            "description": "[Resource not found.](ref:404)",
            "x-akamai": {
              "file-path": "errors/404-version.yaml"
            }
          }
        },
        "summary": "Remove a policy version",
        "tags": [
          "Versions"
        ]
      },
      "parameters": [
        {
          "description": "The number of the version.",
          "in": "path",
          "name": "version",
          "required": true,
          "schema": {
            "example": 2001,
            "type": "integer"
          },
          "x-akamai": {
            "file-path": "parameters/version-path.yaml"
          }
        },
        {
          "description": "Identifies the shared policy.",
          "in": "path",
          "name": "policyId",
          "required": true,
          "schema": {
            "example": 1001,
            "type": "integer"
          },
          "x-akamai": {
            "file-path": "parameters/policy-id-path.yaml"
          }
        }
      ],
      "x-akamai": {
        "file-path": "paths/version.yaml",
        "path-info": "/policies/{policyId}/versions/{version}"
      }
    }
  },
  "servers": [
    {
      "url": "https://{hostname}/cloudlets/v3"
    }
  ],
  "x-akamai": {
    "auth-type": "EDGE_GRID",
    "file-path": "03-policy-versions.yaml"
  },
  "x-readme": {
    "explorer-enabled": false,
    "samples-languages": [
      "curl",
      "python",
      "node"
    ]
  }
}
```

# Sibling pages

* [Create a policy version](https://techdocs.akamai.com/cloudlets/reference/post-policy-version.md)
* [List policy versions](https://techdocs.akamai.com/cloudlets/reference/get-policy-versions.md)
* [Get a policy version](https://techdocs.akamai.com/cloudlets/reference/get-policy-version.md)
* [Update a policy version](https://techdocs.akamai.com/cloudlets/reference/put-policy-version.md)