---
title: Delete all equipments for a given well regardless of wellbore
slug: delete-all-equipments-for-a-given-well-regardless-of-wellbore
docTags: 
createdAt: 2023-05-03T20:15:30.000Z
---

{
  "id": "RI5rZ0t6WnY1F9pce1yVI",
  "type": "api-oas-v2",
  "data": {
    "method": "DELETE",
    "url": "https://data.onxecta.com/api/production/well/{sourceWellId}/equipment",
    "servers": [
      {
        "url": "https://data.onxecta.com/api/production/well/{sourceWellId}/equipment",
        "description": "AWS Cloud API Endpoint"
      },
      {
        "url": "http://localhost/api/production/well/{sourceWellId}/equipment",
        "description": "Local Testing API Endpoint"
      }
    ],
    "name": "Delete all equipments for a given well regardless of wellbore",
    "description": "",
    "contentType": "application/json",
    "request": {
      "pathParameters": [
        {
          "kind": "required",
          "name": "sourceWellId",
          "type": "string",
          "description": ""
        }
      ],
      "headerParameters": [
        {
          "name": "accept",
          "type": "string",
          "kind": "optional",
          "description": "Generated from available response content types",
          "enum": [
            "application/json"
          ],
          "default": "application/json"
        }
      ],
      "queryParameters": [],
      "bodyDataParameters": [],
      "formDataParameters": [],
      "oAuthParameters": [
        {
          "id": "bearerAuth",
          "name": "bearerAuth",
          "kind": "optional",
          "type": "http",
          "scheme": "bearer"
        }
      ],
      "cookieParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "OK",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "integer<int32>",
            "description": "",
            "format": "int32",
            "isExpanded": true
          }
        ]
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "fFt2A1Lvcu3ZMstHCmG0C",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request DELETE \\\n     --url https://data.onxecta.com/api/production/well/{sourceWellId}/equipment \\\n     --header 'accept: application/json'"
        },
        {
          "id": "YsrBnzqPDTK5oDU7Ju3q6",
          "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://data.onxecta.com/api/production/well/{sourceWellId}/equipment\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "-t7LcIBVv_sYfoB0Sye-A",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://data.onxecta.com/api/production/well/{sourceWellId}/equipment\"\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"
        },
        {
          "id": "1Aph5lI-V9zVbxajIE4Nj",
          "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}/equipment\", Method.Delete);\nrequest.AddHeader(\"accept\", \"application/json\");\nrequest.AddHeader(\"content-type\", \"application/json\");\nRestResponse response = await client.ExecuteAsync(request);\nConsole.WriteLine(response.Content);"
        },
        {
          "id": "o75FffI2MwUUfa7flQ9ud",
          "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}/equipment\")\n   .method(\"DELETE\", body)\n   .addHeader(\"accept\", \"application/json\")\n   .addHeader(\"content-type\", \"application/json\")\n   .build();\nResponse response = client.newCall(request).execute();"
        }
      ],
      "selectedLanguageId": "fFt2A1Lvcu3ZMstHCmG0C"
    },
    "results": {
      "languages": [
        {
          "id": "BewWjNf1j0eEf7gm1MEbR",
          "language": "200",
          "code": "// OK\n\"\""
        }
      ],
      "selectedLanguageId": "BewWjNf1j0eEf7gm1MEbR"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}