---
title: Delete Request
slug: single-connect-api-3-0-3/delete-request
description: Learn how to make a DELETE request using cURL with this informative document. Discover the necessary code example, complete with headers for handling JSON data acceptance and transmission. The body of the request is seamlessly incorporated as a raw JSON s
docTags: 
createdAt: 2022-11-10T14:21:49.000Z
---

{
  "id": "E-DBxuEyoAssd7t5GyuSG",
  "data": {
    "url": "{{url}}/aioc-rest-web/rest/sc/sapm/deleteRequest",
    "method": "DELETE",
    "request": {
      "pathParameters": [],
      "queryParameters": [],
      "headerParameters": [
        {
          "name": "X-XSRF-TOKEN",
          "type": "string",
          "example": "{{csrftoken}}",
          "description": ""
        }
      ],
      "bodyDataParameters": [
        {
          "name": "body",
          "type": "string",
          "example": "{\r\n\t\"id\":\"4cc3c1ae-8c96-4588-8257-e3141714f90b\"\r\n}",
          "description": ""
        }
      ],
      "formDataParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "",
        "jsonExample": ""
      }
    ],
    "contentType": "application/json",
    "description": "",
    "examples": {
      "languages": [
        {
          "id": "Z287M34_gF_Q69yMzmprS",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request DELETE \\\n     --url {{url}}/aioc-rest-web/rest/sc/sapm/deleteRequest \\\n     --header 'accept: application/json'"
        },
        {
          "id": "GBotu7du7QIekD_4PE_LL",
          "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/sc/sapm/deleteRequest\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "Jrakn8Y2sGBU3baoFWcqA",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"{{url}}/aioc-rest-web/rest/sc/sapm/deleteRequest\")\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": "mnUrjpYwF-Ll_VRrsJCjp",
          "language": "python",
          "label": "Python",
          "code": "import requests\n\nurl = \"{{url}}/aioc-rest-web/rest/sc/sapm/deleteRequest\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json'\n}\n\nresponse = requests.request(\"DELETE\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "Z287M34_gF_Q69yMzmprS"
    },
    "results": {
      "languages": [
        {
          "id": "JYZ-51KnsubzaEChhDV3M",
          "language": "200",
          "code": ""
        }
      ],
      "selectedLanguageId": "JYZ-51KnsubzaEChhDV3M"
    }
  },
  "type": "api-oas-v2",
  "children": [
    {
      "text": ""
    }
  ]
}