---
title: Delete Single Well Event 
slug: delete-single-well-event
docTags: 
createdAt: 2024-08-13T18:19:32.491Z
---

{
  "id": "CwkqkPK6BOywqYrnYA1O-",
  "type": "api-oas-v2",
  "data": {
    "method": "DELETE",
    "url": "https://data.onxecta.com/api/production/well/{sourceWellId}/event/{date}",
    "servers": [
      {
        "url": "https://data.onxecta.com/api/production/well/{sourceWellId}/event/{date}",
        "description": "AWS Cloud API Endpoint"
      },
      {
        "url": "http://localhost/api/production/well/{sourceWellId}/event/{date}",
        "description": "Local Testing API Endpoint"
      }
    ],
    "name": "Delete Single Well Event ",
    "description": "",
    "contentType": "application/json",
    "request": {
      "pathParameters": [
        {
          "kind": "required",
          "name": "sourceWellId",
          "type": "string",
          "description": ""
        },
        {
          "kind": "required",
          "name": "date",
          "type": "string",
          "description": ""
        }
      ],
      "headerParameters": [
        {
          "name": "accept",
          "type": "string",
          "kind": "optional",
          "description": "Generated from available response content types",
          "enum": [
            "*/*"
          ],
          "default": "*/*"
        }
      ],
      "queryParameters": [],
      "bodyDataParameters": [],
      "formDataParameters": [],
      "oAuthParameters": [
        {
          "id": "bearerAuth",
          "name": "bearerAuth",
          "kind": "optional",
          "type": "http",
          "scheme": "bearer"
        }
      ],
      "cookieParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "OK",
        "jsonExample": "",
        "isExpanded": true
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "ih8l8cFEBK9zj538hgT1F",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request DELETE \\\n     --url https://data.onxecta.com/api/production/well/{sourceWellId}/event/{date} \\\n     --header 'accept: */*'"
        },
        {
          "id": "c7UfQObqTSy9TgToZ65TC",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"*/*\");\nmyHeaders.append(\"content-type\", \"application/json\");\n\nvar requestOptions = {\n   method: 'DELETE',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"https://data.onxecta.com/api/production/well/{sourceWellId}/event/{date}\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "Pm56HgLULkvBRE_KGOUyD",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://data.onxecta.com/api/production/well/{sourceWellId}/event/{date}\"\n\npayload = {}\nheaders = {\n   'accept': '*/*',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"DELETE\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        },
        {
          "id": "ijEfD2LDtI_LBUOGAQGpU",
          "language": "csharp",
          "label": "C#",
          "code": "var options = new RestClientOptions(\"https://data.onxecta.com\")\n{\n   MaxTimeout = -1,\n};\nvar client = new RestClient(options);\nvar request = new RestRequest(\"/api/production/well/{sourceWellId}/event/{date}\", Method.Delete);\nrequest.AddHeader(\"accept\", \"*/*\");\nrequest.AddHeader(\"content-type\", \"application/json\");\nRestResponse response = await client.ExecuteAsync(request);\nConsole.WriteLine(response.Content);"
        },
        {
          "id": "bGwkv1q_9rELfZqO4UfLs",
          "language": "java",
          "label": "Java",
          "code": "OkHttpClient client = new OkHttpClient().newBuilder()\n   .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"\");\nRequest request = new Request.Builder()\n   .url(\"https://data.onxecta.com/api/production/well/{sourceWellId}/event/{date}\")\n   .method(\"DELETE\", body)\n   .addHeader(\"accept\", \"*/*\")\n   .addHeader(\"content-type\", \"application/json\")\n   .build();\nResponse response = client.newCall(request).execute();"
        }
      ],
      "selectedLanguageId": "ih8l8cFEBK9zj538hgT1F"
    },
    "results": {
      "languages": [
        {
          "id": "c8ZZuo8ahzv9Bc4dDzkoR",
          "language": "200",
          "code": "// OK\n"
        }
      ],
      "selectedLanguageId": "c8ZZuo8ahzv9Bc4dDzkoR"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}