---
title: Delete model
slug: model-api/delete-model
docTags: 
createdAt: 2024-06-10T16:48:45.445Z
---

{
  "id": "Xl3lX4patEIAzfQuXcgmV",
  "type": "api-oas-v2",
  "data": {
    "method": "DELETE",
    "url": "https://api.catenda.com/v2/projects/{project-id}/models/{model-id}",
    "servers": [
      {
        "url": "https://api.catenda.com/v2/projects/{project-id}/models/{model-id}"
      }
    ],
    "name": "Delete model",
    "description": "Delete a model.\n\nThe current user must be an administrator of the project.\n",
    "contentType": "application/json",
    "request": {
      "pathParameters": [
        {
          "kind": "required",
          "name": "project-id",
          "type": "string",
          "example": "af2d8af0fa54465b89bf26dd3d92cfd0",
          "description": "Catenda project id"
        },
        {
          "kind": "required",
          "name": "model-id",
          "type": "string",
          "description": "Id of the model"
        }
      ],
      "headerParameters": [],
      "queryParameters": [],
      "bodyDataParameters": [],
      "formDataParameters": [],
      "oAuthParameters": [
        {
          "id": "Bearer",
          "name": "Bearer",
          "kind": "optional",
          "type": "http",
          "scheme": "bearer"
        }
      ],
      "cookieParameters": []
    },
    "responses": [
      {
        "statusCode": "204",
        "description": "No Content",
        "jsonExample": "",
        "isExpanded": true
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "AzW1BhFGjh7EKRmB6q70H",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request DELETE \\\n     --url https://api.catenda.com/v2/projects/{project-id}/models/{model-id} \\\n     --header 'accept: application/json'"
        },
        {
          "id": "DivVDdYzTBYxBwJO5CQSb",
          "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/projects/{project-id}/models/{model-id}\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "GAf1iL2yrCBjNv1rcz0Rz",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://api.catenda.com/v2/projects/{project-id}/models/{model-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": "-KvmlzQyB3buPBi4X7Num",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://api.catenda.com/v2/projects/{project-id}/models/{model-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": "AzW1BhFGjh7EKRmB6q70H"
    },
    "results": {
      "languages": [
        {
          "id": "Ldswc9-Chc7YQvQ94lmMK",
          "language": "204",
          "code": "// No Content\n"
        }
      ],
      "selectedLanguageId": "Ldswc9-Chc7YQvQ94lmMK"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}