---
title: Delete type
slug: topic-api/delete-type
docTags: 
createdAt: 2024-06-10T16:49:07.009Z
---

{
  "id": "VuPBa6n7qBlHROyRnDNTI",
  "type": "api-oas-v2",
  "data": {
    "method": "DELETE",
    "url": "https://api.catenda.com/opencde/bcf/3.0/projects/{topic-board-id}/extensions/types",
    "servers": [
      {
        "url": "https://api.catenda.com/opencde/bcf/3.0/projects/{topic-board-id}/extensions/types"
      }
    ],
    "name": "Delete type",
    "description": "Delete a topic board type.\n\nThe type to be deleted must not be currently assigned to any topic or be the last type.\n",
    "contentType": "application/json",
    "request": {
      "pathParameters": [
        {
          "kind": "required",
          "name": "topic-board-id",
          "type": "string",
          "example": "e18a2d10-1595-4e52-a941-22d43bf8d7ad",
          "description": "Id of the topic board"
        }
      ],
      "headerParameters": [],
      "queryParameters": [],
      "bodyDataParameters": [
        {
          "kind": "optional",
          "name": "body",
          "type": "object",
          "description": "",
          "schema": [
            {
              "name": "name",
              "kind": "required",
              "type": "string",
              "description": "The name of the type to delete",
              "example": "Needs repair"
            }
          ],
          "isExpanded": true
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": [
        {
          "id": "Bearer",
          "name": "Bearer",
          "kind": "optional",
          "type": "http",
          "scheme": "bearer"
        }
      ]
    },
    "responses": [
      {
        "statusCode": "204",
        "description": "No Content",
        "jsonExample": "",
        "isExpanded": true
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "vGBlPihVLbSfjIuxTy-mO",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request DELETE \\\n     --url https://api.catenda.com/opencde/bcf/3.0/projects/{topic-board-id}/extensions/types \\\n     --header 'accept: application/json' \\\n     --header 'content-type: application/json' \\\n     --data '{\n     \"name\": \"Needs repair\"\n     }'"
        },
        {
          "id": "Rq8hWp6ILgWOdcBCgmj_s",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\n\nvar raw = JSON.stringify({\n   \"name\": \"Needs repair\"\n});\n\nvar requestOptions = {\n   method: 'DELETE',\n   headers: myHeaders,\n   body: raw,\n   redirect: 'follow'\n};\n\nfetch(\"https://api.catenda.com/opencde/bcf/3.0/projects/{topic-board-id}/extensions/types\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "9PdBRveQfEtmNilCEW8ea",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://api.catenda.com/opencde/bcf/3.0/projects/{topic-board-id}/extensions/types\")\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\"\nrequest.body = JSON.dump({\n   \"name\": \"Needs repair\"\n})\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "oXZBwPAs2RSi0lRFHXxoS",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://api.catenda.com/opencde/bcf/3.0/projects/{topic-board-id}/extensions/types\"\n\npayload = json.dumps({\n   \"name\": \"Needs repair\"\n})\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": "vGBlPihVLbSfjIuxTy-mO"
    },
    "results": {
      "languages": [
        {
          "id": "5RJRNyub9cI9-e0eVtc7g",
          "language": "204",
          "code": "// No Content\n"
        }
      ],
      "selectedLanguageId": "5RJRNyub9cI9-e0eVtc7g"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}