---
title: Delete Element Type By DbId
slug: single-connect-api-3-0-3/delete-element-type-by-dbid
description: Learn how to use the cURL command to send a DELETE request with JSON data to a specific URL. This code example provides all the required headers and data, ensuring a seamless deletion process. Follow this step-by-step guide to effortlessly handle DELETE r
docTags: 
createdAt: 2022-11-10T14:21:49.000Z
---

{
  "id": "wgp4G1lvd4wcBr3ynF699",
  "data": {
    "url": "{{url}}/aioc-rest-web/rest/elementType/deleteElementType",
    "method": "DELETE",
    "request": {
      "pathParameters": [],
      "queryParameters": [],
      "headerParameters": [
        {
          "name": "Content-Type",
          "type": "string",
          "example": "application/json",
          "description": ""
        },
        {
          "name": "X-XSRF-TOKEN",
          "type": "string",
          "example": "{{csrftoken}}",
          "description": ""
        }
      ],
      "bodyDataParameters": [
        {
          "name": "body",
          "type": "string",
          "example": "    {\r\n        \"dbId\": 421\r\n    }",
          "description": ""
        }
      ],
      "formDataParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "Delete Element Type By DbId",
        "jsonExample": "\"OK\""
      }
    ],
    "contentType": "application/json",
    "description": "<p>This method deletes the element type with dbId information.</p>\n<p>Mandatory Field:\n\"dbId\"</p>",
    "examples": {
      "languages": [
        {
          "id": "WBieB7zBjZJrL8aYW2yJ8",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request DELETE \\\n     --url {{url}}/aioc-rest-web/rest/elementType/deleteElementType \\\n     --header 'accept: application/json'"
        },
        {
          "id": "QfxcaduyAWjNkehZofxBA",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\n\nvar requestOptions = {\n   method: 'DELETE',\n   headers: myHeaders,\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": "OZNKlyPWxBDMZiFHiZMcW",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\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\"\n\nresponse = http.request(request)\nputs response.read_body\n"
        },
        {
          "id": "-U68WmuWtwAZmDeqXwpND",
          "language": "python",
          "label": "Python",
          "code": "import requests\n\nurl = \"{{url}}/aioc-rest-web/rest/elementType/deleteElementType\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json'\n}\n\nresponse = requests.request(\"DELETE\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "WBieB7zBjZJrL8aYW2yJ8"
    },
    "results": {
      "languages": [
        {
          "id": "JTADyDBSEdY_HgE91xEcJ",
          "language": "200",
          "code": "\"OK\""
        }
      ],
      "selectedLanguageId": "JTADyDBSEdY_HgE91xEcJ"
    }
  },
  "type": "api-oas-v2",
  "children": [
    {
      "text": ""
    }
  ]
}