---
title: Delete Element Type By DbId
slug: kronpam-api-collection-350/delete-element-type-by-dbid
docTags: 
createdAt: 2024-07-22T09:58:47.221Z
---

{
  "id": "brJPhXABkKsxc6LCop8ts",
  "type": "api-oas-v2",
  "data": {
    "method": "DELETE",
    "url": "{{url}}/aioc-rest-web/rest/elementType/deleteElementType",
    "name": "",
    "description": "<p>This method deletes the element type with dbId information.</p>\n<p>Mandatory Field:\n\"dbId\"</p>",
    "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": "    {\r\n        \"dbId\": 421\r\n    }",
          "value": "    {\r\n        \"dbId\": 421\r\n    }",
          "type": "object"
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "Delete Element Type By DbId",
        "jsonExample": "\"OK\""
      }
    ],
    "examples": {
      "languages": [
        {
          "id": "NH9hwAByqlpHyxbuxB3CU",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request DELETE \\\n     --url {{url}}/aioc-rest-web/rest/elementType/deleteElementType \\\n     --header 'accept: application/json' \\\n     --header 'content-type: application/json' \\\n     --header 'x-xsrf-token: {{csrftoken}}' \\\n     --data '\"    {\\r\\n        \\\"dbId\\\": 421\\r\\n    }\"'"
        },
        {
          "id": "FxphklSZdpUnedtiOVDjm",
          "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(\"    {\\r\\n        \\\"dbId\\\": 421\\r\\n    }\");\n\nvar requestOptions = {\n   method: 'DELETE',\n   headers: myHeaders,\n   body: raw,\n   redirect: 'follow'\n};\n\nfetch(\"{{url}}/aioc-rest-web/rest/elementType/deleteElementType\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "aznZiC--3aDxn5qL6pFYI",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"{{url}}/aioc-rest-web/rest/elementType/deleteElementType\")\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(\"    {\\r\\n        \\\"dbId\\\": 421\\r\\n    }\")\n\nresponse = http.request(request)\nputs response.read_body\n"
        },
        {
          "id": "Eg0jSyynMThpCpXMFg_K9",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"{{url}}/aioc-rest-web/rest/elementType/deleteElementType\"\n\npayload = json.dumps(\"    {\\r\\n        \\\"dbId\\\": 421\\r\\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": "NH9hwAByqlpHyxbuxB3CU"
    },
    "results": {
      "languages": [
        {
          "id": "fkk22aiD_eJWvsPWP1OY5",
          "language": "200",
          "code": "\"OK\""
        }
      ],
      "selectedLanguageId": "fkk22aiD_eJWvsPWP1OY5"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}