---
title: Delete a monitor
slug: monitor/delete-a-monitor
docTags: 
createdAt: 2025-04-09T07:49:37.193Z
---

:::ApiMethodV2
```json
{
  "name": "Delete a monitor",
  "method": "DELETE",
  "url": "https://api-sandbox.klavi.ai/monitor/v1/monitors/{id}",
  "description": "Delete a monitor",
  "tab": "examples",
  "examples": {
    "languages": [
      {
        "id": "cuJe8BKwuFz5SSvEuTsu4",
        "language": "curl",
        "code": "curl --location --globoff --request DELETE 'https://api-sandbox.klavi.ai/monitor/v1/monitors/{id}' \\\n--header 'Authorization: string'",
        "customLabel": ""
      },
      {
        "id": "Q8TPGqgY3YLSeIHrk72Yn",
        "language": "nodejs",
        "code": "var request = require('request');\nvar options = {\n   'method': 'DELETE',\n   'url': 'https://api-sandbox.klavi.ai/monitor/v1/monitors/{id}',\n   'headers': {\n      'Authorization': 'string'\n   }\n};\nrequest(options, function (error, response) {\n   if (error) throw new Error(error);\n   console.log(response.body);\n});\n",
        "customLabel": ""
      },
      {
        "id": "JKi3SyyNTN4IsjU1eSya1",
        "language": "javascript",
        "code": "var myHeaders = new Headers();\nmyHeaders.append(\"Authorization\", \"string\");\n\nvar requestOptions = {\n   method: 'DELETE',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"https://api-sandbox.klavi.ai/monitor/v1/monitors/{id}\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));",
        "customLabel": ""
      },
      {
        "id": "maN_FrDOzTeFFVCthUcX5",
        "language": "python",
        "code": "import requests\n\nurl = \"https://api-sandbox.klavi.ai/monitor/v1/monitors/{id}\"\n\npayload = {}\nheaders = {\n   'Authorization': 'string'\n}\n\nresponse = requests.request(\"DELETE\", url, headers=headers, data=payload)\n\nprint(response.text)\n",
        "customLabel": ""
      },
      {
        "id": "ruOgG5Pbl35Kez1qFo96S",
        "language": "ruby",
        "code": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"https://api-sandbox.klavi.ai/monitor/v1/monitors/{id}\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Delete.new(url)\nrequest[\"Authorization\"] = \"string\"\n\nresponse = https.request(request)\nputs response.read_body\n",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "cuJe8BKwuFz5SSvEuTsu4"
  },
  "results": {
    "languages": [
      {
        "id": "jQT7rnfo-_ZiDZWGfTYhA",
        "language": "200",
        "customLabel": "",
        "code": "{\n\t\"message\": \"ok\"\n}"
      }
    ],
    "selectedLanguageId": "jQT7rnfo-_ZiDZWGfTYhA"
  },
  "request": {
    "pathParameters": [
      {
        "name": "id",
        "kind": "required",
        "type": "string",
        "description": "ID of the monitor",
        "": "ID of the monitor"
      }
    ],
    "queryParameters": [],
    "headerParameters": [
      {
        "name": "Authorization",
        "kind": "required",
        "type": "string",
        "description": "Bearer access token, it returned by the /auth",
        "": "Authorization"
      }
    ],
    "bodyDataParameters": [],
    "formDataParameters": []
  },
  "currentNewParameter": {
    "label": "Header Parameter",
    "value": "headerParameters"
  },
  "hasTryItOut": false
}
```
:::

