---
title: Delete Connector Node
slug: single-connect-api-3-2-0/delete-connector-node
description: Learn how to utilize the powerful "curl" command in this document, as it illustrates a code example demonstrating the process of sending a DELETE request to a designated URL, complete with customized headers and a specified content type.
docTags: 
createdAt: 2022-11-10T14:24:52.000Z
---

{
  "id": "tMigNFUsQSWfPcvMnmIei",
  "data": {
    "url": "{{url}}/aioc-rest-web/rest/tenantConnector/connectorNode/deleteNode/{{id}}",
    "method": "DELETE",
    "request": {
      "pathParameters": [],
      "queryParameters": [],
      "headerParameters": [
        {
          "name": "X-XSRF-TOKEN",
          "type": "string",
          "example": "{{csrftoken}}",
          "description": ""
        }
      ],
      "bodyDataParameters": [],
      "formDataParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "",
        "jsonExample": ""
      }
    ],
    "contentType": "application/json",
    "description": "",
    "examples": {
      "languages": [
        {
          "id": "_N1StsU35F-DkEeDeV35_",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request DELETE \\\n     --url {{url}}/aioc-rest-web/rest/tenantConnector/connectorNode/deleteNode/{{id}} \\\n     --header 'accept: application/json'"
        },
        {
          "id": "VMw2Zk1dOMAJECPdEEFt8",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\n\nvar requestOptions = {\n   method: 'DELETE',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"{{url}}/aioc-rest-web/rest/tenantConnector/connectorNode/deleteNode/{{id}}\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "vQMBZqccRptmWm9wHZgDW",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"{{url}}/aioc-rest-web/rest/tenantConnector/connectorNode/deleteNode/{{id}}\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nrequest = Net::HTTP::Delete.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\n\nresponse = http.request(request)\nputs response.read_body\n"
        },
        {
          "id": "nfg-X6-6meAY6JQZMx4A0",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"{{url}}/aioc-rest-web/rest/tenantConnector/connectorNode/deleteNode/{{id}}\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"DELETE\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "_N1StsU35F-DkEeDeV35_"
    },
    "results": {
      "languages": [
        {
          "id": "k7LnltvQ230EwVEfAzVC7",
          "language": "200",
          "code": ""
        }
      ],
      "selectedLanguageId": "k7LnltvQ230EwVEfAzVC7"
    }
  },
  "type": "api-oas-v2",
  "children": [
    {
      "text": ""
    }
  ]
}