---
title: Remove member
slug: organization-api/remove-member
docTags: 
createdAt: 2024-07-01T11:14:05.780Z
---

{
  "id": "IYVbbJyzSlUdfH33iTcKj",
  "type": "api-oas-v2",
  "data": {
    "method": "DELETE",
    "url": "https://api.catenda.com/v2/orgs/{organization-id}/members/{user-id}",
    "servers": [
      {
        "url": "https://api.catenda.com/v2/orgs/{organization-id}/members/{user-id}"
      }
    ],
    "name": "Remove member",
    "description": "Remove an organization member.\n\nThe current user must be an owner of the organization to remove other members.\n\nThere must be at least one other owner in the organization when removing the current user.\n",
    "contentType": "application/json",
    "request": {
      "pathParameters": [
        {
          "kind": "required",
          "name": "organization-id",
          "type": "string",
          "description": "Id of the organization"
        },
        {
          "kind": "required",
          "name": "user-id",
          "type": "string",
          "description": "Id of the user"
        }
      ],
      "headerParameters": [],
      "queryParameters": [],
      "bodyDataParameters": [],
      "formDataParameters": [],
      "oAuthParameters": [
        {
          "id": "Bearer",
          "name": "Bearer",
          "kind": "optional",
          "type": "http",
          "scheme": "bearer"
        }
      ]
    },
    "responses": [
      {
        "statusCode": "204",
        "description": "No Content",
        "jsonExample": "",
        "isExpanded": true
      }
    ],
    "examples": {
      "languages": [
        {
          "id": "TeW5sx9pgiHQmaKRkg7ki",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request DELETE \\\n     --url https://api.catenda.com/v2/orgs/{organization-id}/members/{user-id} \\\n     --header 'accept: application/json'"
        },
        {
          "id": "p-KaF5AM4IWbfD2QYucNY",
          "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://api.catenda.com/v2/orgs/{organization-id}/members/{user-id}\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "hiwyImCqXRq_adOGD8Lig",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://api.catenda.com/v2/orgs/{organization-id}/members/{user-id}\")\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": "GRsp76Z_uoeo-zuOavyvG",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://api.catenda.com/v2/orgs/{organization-id}/members/{user-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": "TeW5sx9pgiHQmaKRkg7ki"
    },
    "results": {
      "languages": [
        {
          "id": "8QRj21S9XII3DR_-8Yddw",
          "language": "204",
          "code": "// No Content\n"
        }
      ],
      "selectedLanguageId": "8QRj21S9XII3DR_-8Yddw"
    }
  },
  "children": [
    {
      "id": "WrKqrGnuMy_3tLKhJcqcb",
      "type": "paragraph",
      "children": [
        {
          "text": "Remove an organization member."
        }
      ]
    },
    {
      "id": "DEdaG1V7s2p1-MD6e77ov",
      "type": "paragraph",
      "children": [
        {
          "text": "The current user must be an owner of the organization to remove other members."
        }
      ]
    },
    {
      "id": "ByNSVIJnupa0vPtq9d5w7",
      "type": "paragraph",
      "children": [
        {
          "text": "There must be at least one other owner in the organization when removing the current user."
        }
      ]
    }
  ]
}