---
updatedAt: 2026-03-01T18:09:38.000Z
agentTools:
  siteIndex: https://techdocs.akamai.com/llms.txt
  projectIndex: https://techdocs.akamai.com/api-definitions/llms.txt
---

# Delete PII in an endpoint version

Removes a PII object from your API endpoint definition for the version you specify. If you want to delete the PII object from all the versions where it exists, you'll need to make this request for each version of the endpoint.

# OpenAPI definition

```json
{
  "externalDocs": {
    "description": "See documentation for Akamai's API Endpoint Definition API",
    "url": "https://techdocs.akamai.com/api-definitions/reference"
  },
  "info": {
    "license": {
      "name": "Apache 2.0",
      "url": "https://www.apache.org/licenses/LICENSE-2.0.html"
    },
    "title": "API endpoints",
    "version": "v2"
  },
  "openapi": "3.0.0",
  "paths": {
    "/endpoints/{apiEndPointId}/versions/{versionNumber}/piis/{piiId}": {
      "delete": {
        "description": "Removes a PII object from your API endpoint definition for the version you specify. If you want to delete the PII object from all the versions where it exists, you'll need to make this request for each version of the endpoint.",
        "externalDocs": {
          "description": "See documentation for this operation in Akamai's API Endpoint Definition API",
          "url": "https://techdocs.akamai.com/api-definitions/reference/delete-endpoint-version-pii"
        },
        "operationId": "delete-endpoint-version-pii",
        "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": "Successfully deleted the PII object from the endpoint version."
          },
          "403": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "You have insufficient permissions to perform this action. Ensure that you have the correct permissions set in Identity and Access Management.",
                  "instance": "2602aedd-38a9-41c3-a607-8a6ad8129e6b",
                  "status": 403,
                  "title": "Forbidden",
                  "type": "/api-definitions/error-types/forbidden"
                },
                "schema": {
                  "additionalProperties": true,
                  "description": "Contains debugging information for error responses.",
                  "properties": {
                    "detail": {
                      "description": "The detailed error message.",
                      "type": "string"
                    },
                    "errors": {
                      "description": "Nested error responses.",
                      "items": {
                        "description": "A further nested problem detail object.",
                        "type": "object",
                        "x-akamai": {
                          "file-path": "schemas/http-problem-details-recurse.yaml"
                        }
                      },
                      "type": "array"
                    },
                    "instance": {
                      "description": "The non-referenceable URL for the error instance.",
                      "type": "string"
                    },
                    "status": {
                      "description": "The HTTP status code.",
                      "type": "integer"
                    },
                    "title": {
                      "description": "The title of the error.",
                      "type": "string"
                    },
                    "type": {
                      "description": "The URL for the error type.",
                      "type": "string"
                    }
                  },
                  "type": "object",
                  "x-akamai": {
                    "file-path": "schemas/http-problem-details.yaml"
                  }
                }
              }
            },
            "description": "[Forbidden](ref:403). You don't have permission to delete PII for this endpoint version.",
            "x-akamai": {
              "file-path": "errors/403.yaml"
            }
          }
        },
        "summary": "Delete PII in an endpoint version",
        "tags": [
          "Personally identifiable information"
        ]
      },
      "parameters": [
        {
          "description": "The unique identifier for the endpoint.",
          "in": "path",
          "name": "apiEndPointId",
          "required": true,
          "schema": {
            "example": 1,
            "type": "integer"
          },
          "x-akamai": {
            "file-path": "parameters/api-end-point-id-path.yaml"
          }
        },
        {
          "description": "The unique identifier for the endpoint version.",
          "in": "path",
          "name": "versionNumber",
          "required": true,
          "schema": {
            "example": 1,
            "type": "integer"
          },
          "x-akamai": {
            "file-path": "parameters/version-number-path.yaml"
          }
        },
        {
          "description": "The unique identifier for the PII object.",
          "in": "path",
          "name": "piiId",
          "required": true,
          "schema": {
            "example": 1,
            "type": "integer"
          },
          "x-akamai": {
            "file-path": "parameters/pii-id-path.yaml"
          }
        }
      ],
      "x-akamai": {
        "file-path": "paths/pii.yaml",
        "path-info": "/endpoints/{apiEndPointId}/versions/{versionNumber}/piis/{piiId}"
      }
    }
  },
  "servers": [
    {
      "url": "https://{hostname}/api-definitions/v2"
    }
  ],
  "x-akamai": {
    "auth-type": "EDGE_GRID",
    "file-path": "03-api-endpoint-resource.yaml"
  },
  "x-readme": {
    "samples-languages": [
      "curl",
      "python",
      "node"
    ],
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```

# Sibling pages

* [List parameters with PII for an endpoint version](https://techdocs.akamai.com/api-definitions/reference/get-endpoint-version-piis.md)
* [Add or update a user-created PII instance](https://techdocs.akamai.com/api-definitions/reference/post-endpoint-version-piis-parameter.md)
* [Modify PII settings for an endpoint version](https://techdocs.akamai.com/api-definitions/reference/post-endpoint-version-pii-settings.md)
* [List PII settings for an endpoint version](https://techdocs.akamai.com/api-definitions/reference/get-endpoint-version-pii-settings.md)
* [Modify PII status per endpoint version](https://techdocs.akamai.com/api-definitions/reference/post-endpoint-version-pii-status-from-register-form.md)
* [Patch PII status per endpoint version](https://techdocs.akamai.com/api-definitions/reference/patch-endpoint-version-pii-status.md)