> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ankra.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Deprovision a Hetzner cluster



## OpenAPI

````yaml https://platform.ankra.app/openapi.json delete /api/v1/clusters/hetzner/{cluster_id}
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers:
  - url: https://platform.ankra.app
security: []
paths:
  /api/v1/clusters/hetzner/{cluster_id}:
    delete:
      tags:
        - Hetzner Cluster API
      summary: Deprovision a Hetzner cluster
      operationId: >-
        deprovision_hetzner_cluster_endpoint_api_v1_clusters_hetzner__cluster_id__delete
      parameters:
        - in: path
          name: cluster_id
          required: true
          schema:
            format: uuid
            title: Cluster Id
            type: string
        - description: >-
            Set to 'true' to force deprovision without waiting for the cluster
            agent. Use only when the cluster agent is permanently offline; cloud
            resources may leak if Vault or the agent cannot be reached during
            teardown.
          in: query
          name: force
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              Set to 'true' to force deprovision without waiting for the cluster
              agent. Use only when the cluster agent is permanently offline;
              cloud resources may leak if Vault or the agent cannot be reached
              during teardown.
            title: Force
        - in: header
          name: authorization
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
        - in: header
          name: x-ankra-organisation-id
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Ankra-Organisation-Id
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeprovisionHetznerClusterResponse'
          description: Cluster deprovisioned successfully
        '401':
          description: Unauthorized
        '404':
          description: Cluster not found
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
components:
  schemas:
    DeprovisionHetznerClusterResponse:
      properties:
        cluster_id:
          format: uuid4
          title: Cluster Id
          type: string
        operation_id:
          anyOf:
            - format: uuid4
              type: string
            - type: 'null'
          title: Operation Id
        success:
          default: true
          title: Success
          type: boolean
      required:
        - cluster_id
      title: DeprovisionHetznerClusterResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object

````