---
updatedAt: 2026-06-01T10:05:19.000Z
agentTools:
  projectIndex: https://developer.loconiq.com/llms.txt
---

# Delete Environments by Id

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "LoconIQ API",
    "description": "Visit developer.loconiq.com for more information",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://api.loconiq.com/v1"
    }
  ],
  "paths": {
    "/infrastructure/environments/{id}": {
      "delete": {
        "operationId": "deleteEnvironment",
        "summary": "Delete Environments by Id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The id to be used",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestIdResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKeyAuth": []
          },
          {
            "BearerAuth": []
          }
        ],
        "tags": [
          "Environment Infrastructure"
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "message": {
            "description": "Error description of the failed request",
            "type": "string"
          },
          "requestId": {
            "description": "The request id sent for the request. Please provide this id if you contact support",
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "message"
        ]
      },
      "RequestIdResponse": {
        "type": "object",
        "properties": {
          "requestId": {
            "description": "The request id sent for the request. Please provide this id if you contact support",
            "type": "string",
            "nullable": true
          }
        }
      }
    },
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      },
      "ApiKeyAuth": {
        "type": "apiKey",
        "name": "x-api-key",
        "in": "header"
      }
    }
  },
  "tags": [
    {
      "name": "Environment Infrastructure",
      "description": "Endpoints for infrastructure handling"
    }
  ]
}
```