---
title: Delete a Group
slug: delete-a-group
docTags: 
createdAt: 2023-11-07T15:25:31.944Z
---

{
  "id": "TuIS-LAfdh--dFZ8VvkuJ",
  "type": "api-oas-v2",
  "data": {
    "request": {
      "oAuthParameters": [],
      "pathParameters": [
        {
          "kind": "required",
          "name": "urn",
          "type": "string",
          "description": "<p>Group's URN in the \"urn:jobylon:scim:&#x3C;customer_id>:groups:&#x3C;group_id>\" format</p>"
        }
      ],
      "headerParameters": [],
      "queryParameters": [],
      "bodyDataParameters": [],
      "formDataParameters": []
    },
    "method": "DELETE",
    "url": "https://example.com/scim/v2/Groups/{urn}",
    "servers": [
      {
        "url": "https://example.com/scim/v2/Groups/{urn}",
        "description": "Jobylon Staging"
      }
    ],
    "examples": {
      "selectedLanguageId": "OaYwMJv-_tu055sj8yslw",
      "languages": [
        {
          "id": "OaYwMJv-_tu055sj8yslw",
          "language": "curl",
          "label": "cURL",
          "code": "curl --location -g --request DELETE 'https://example.com/scim/v2/Groups/{urn}' \\\n--header 'Accept: application/json' \\\n--header 'Content-Type: application/json'"
        },
        {
          "id": "jNB-a0cXGYwNYsPMjcZC2",
          "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(\"https://example.com/scim/v2/Groups/{urn}\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "77-E1lvRn8KR4EYFbYaws",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://example.com/scim/v2/Groups/{urn}\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Delete.new(url)\nrequest[\"Accept\"] = \"application/json\"\nrequest[\"Content-Type\"] = \"application/json\"\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "lUyU33Qdvyf1VtyuRKhfm",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://example.com/scim/v2/Groups/{urn}\"\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"
        }
      ]
    },
    "results": {
      "languages": [
        {
          "id": "eML6DFqHbv3AQpB3uI-LR",
          "language": "204",
          "code": "// No Content\n"
        }
      ],
      "selectedLanguageId": "eML6DFqHbv3AQpB3uI-LR"
    },
    "responses": [
      {
        "statusCode": "204",
        "description": "No Content",
        "jsonExample": "",
        "isExpanded": true
      }
    ],
    "description": "Deletes a SCIM Group and any user roles that may have been associated with it."
  },
  "children": [
    {
      "id": "KEiCwMzN8kqVHa44RsbNq",
      "type": "paragraph",
      "children": [
        {
          "text": "Deletes a SCIM Group and any user roles that may have been associated with it."
        }
      ]
    }
  ]
}