---
title: Delete SAPM Group
slug: single-connect-api-3-2-0/delete-sapm-group
description: Learn how to send a DELETE request using curl with this comprehensive document. Explore a detailed code example demonstrating how to delete a group from a specific URL. Discover the necessary headers and data to successfully execute the request and effici
docTags: 
createdAt: 2022-11-10T14:24:52.000Z
---

{
  "id": "3peCqSwnCbElZ8b-N4H60",
  "data": {
    "url": "{{url}}/aioc-rest-web/rest/sc/sapm/deleteSapmGroup",
    "method": "DELETE",
    "request": {
      "pathParameters": [],
      "queryParameters": [],
      "headerParameters": [
        {
          "name": "X-XSRF-TOKEN",
          "type": "string",
          "example": "{{csrftoken}}",
          "description": ""
        }
      ],
      "bodyDataParameters": [
        {
          "name": "body",
          "type": "string",
          "example": "{\n\t\"dbId\":85825\n}",
          "description": ""
        }
      ],
      "formDataParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "Delete SAPM Group",
        "jsonExample": "SUCCESS"
      }
    ],
    "contentType": "application/json",
    "description": "You can delete SAPM group using this API. You should send dbId of SAPM group. ",
    "examples": {
      "languages": [
        {
          "id": "pOvxa4ZbnlUF2Qj-StuyD",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request DELETE \\\n     --url {{url}}/aioc-rest-web/rest/sc/sapm/deleteSapmGroup \\\n     --header 'accept: application/json'"
        },
        {
          "id": "2pOhdVOf3ptuiR91X1mk7",
          "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/deleteSapmGroup\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "oh4JnwDFSYtX3pPmhqfnG",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"{{url}}/aioc-rest-web/rest/sc/sapm/deleteSapmGroup\")\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": "iiYtqZZKSuxSKNzGmGYR8",
          "language": "python",
          "label": "Python",
          "code": "import requests\n\nurl = \"{{url}}/aioc-rest-web/rest/sc/sapm/deleteSapmGroup\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json'\n}\n\nresponse = requests.request(\"DELETE\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "pOvxa4ZbnlUF2Qj-StuyD"
    },
    "results": {
      "languages": [
        {
          "id": "D1zVs4JhTxLNuOr0WM5jf",
          "language": "200",
          "code": "SUCCESS"
        }
      ],
      "selectedLanguageId": "D1zVs4JhTxLNuOr0WM5jf"
    }
  },
  "type": "api-oas-v2",
  "children": [
    {
      "text": ""
    }
  ]
}