---
title: Delete Policy Key
slug: kron-pam-api-collection-381-patch3/delete-policy-key
docTags: 
createdAt: 2026-10-21T06:07:16.182Z
---

{
  "id": "MUjZRdRmdq57cPd05TIJz",
  "type": "api-oas-v2",
  "data": {
    "method": "DELETE",
    "url": "{{url}}/aioc-rest-web/rest/policy/deletePolicyKey",
    "name": "",
    "description": "<h3>Request Overview</h3>\n<p>This API deletes an existing policy key using the provided dbId.</p>\n<ul>\n<li>Request body: Must include the dbId of the policy key to be deleted.</li>\n</ul>",
    "contentType": "application/json",
    "request": {
      "headerParameters": [
        {
          "name": "Content-Type",
          "description": "",
          "default": "application/json",
          "value": "application/json",
          "type": "string"
        },
        {
          "name": "X-XSRF-TOKEN",
          "description": "",
          "default": "{{csrftoken}}",
          "value": "{{csrftoken}}",
          "type": "string"
        }
      ],
      "queryParameters": [],
      "pathParameters": [
        {
          "name": "url",
          "description": "",
          "default": "url",
          "value": "url",
          "type": "string"
        }
      ],
      "bodyDataParameters": [
        {
          "name": "body",
          "description": "",
          "default": "{   \n\t\"dbId\": 379291\n} ",
          "value": "{   \n\t\"dbId\": 379291\n} ",
          "type": "object"
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "Delete Policy Key",
        "jsonExample": "Success"
      }
    ],
    "examples": {
      "languages": [
        {
          "id": "7fTOgpZAjZAyAhoUCD5tp",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request DELETE \\\n     --url {{url}}/aioc-rest-web/rest/policy/deletePolicyKey \\\n     --header 'accept: application/json' \\\n     --header 'content-type: application/json' \\\n     --header 'x-xsrf-token: {{csrftoken}}' \\\n     --data '\"{   \\n\\t\\\"dbId\\\": 379291\\n} \"'"
        },
        {
          "id": "V6MMZpF1M9AXHPxjYXyGv",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\nmyHeaders.append(\"x-xsrf-token\", \"{{csrftoken}}\");\n\nvar raw = JSON.stringify(\"{   \\n\\t\\\"dbId\\\": 379291\\n} \");\n\nvar requestOptions = {\n   method: 'DELETE',\n   headers: myHeaders,\n   body: raw,\n   redirect: 'follow'\n};\n\nfetch(\"{{url}}/aioc-rest-web/rest/policy/deletePolicyKey\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "EHlKJjIX85EeE2ZzkY_L0",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"{{url}}/aioc-rest-web/rest/policy/deletePolicyKey\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nrequest = Net::HTTP::Delete.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\nrequest[\"x-xsrf-token\"] = \"{{csrftoken}}\"\nrequest.body = JSON.dump(\"{   \\n\\t\\\"dbId\\\": 379291\\n} \")\n\nresponse = http.request(request)\nputs response.read_body\n"
        },
        {
          "id": "tN88dDuEfMHVsMiYO9KAK",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"{{url}}/aioc-rest-web/rest/policy/deletePolicyKey\"\n\npayload = json.dumps(\"{   \\n\\t\\\"dbId\\\": 379291\\n} \")\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json',\n   'x-xsrf-token': '{{csrftoken}}'\n}\n\nresponse = requests.request(\"DELETE\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "7fTOgpZAjZAyAhoUCD5tp"
    },
    "results": {
      "languages": [
        {
          "id": "zO3uiSpn-fZZBiX8bJT7W",
          "language": "200",
          "code": "Success"
        }
      ],
      "selectedLanguageId": "zO3uiSpn-fZZBiX8bJT7W"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}