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

# Delete Resource

> Delete a resource. Terminates the instance on the vendor and marks it as deleted.

Destroy a provisioned resource. This terminates the instance on the vendor and marks it as deleted.

## Asynchronous deletion

Deletion is asynchronous. The resource transitions through `deleting` before reaching `deleted`. Poll [`GET /resources/{resource_id}`](/api-reference/endpoint/get-resource) to confirm deletion.

## Idempotency

Deleting an already-deleted resource returns `409 Conflict`.


## OpenAPI

````yaml DELETE /resources/{resource_id}
openapi: 3.1.0
info:
  title: Supply Service
  description: GPU offers querying and provisioning service
  version: 0.1.0
servers:
  - url: https://supply-api.compute-desk.com
security: []
paths:
  /resources/{resource_id}:
    delete:
      tags:
        - Resources
      summary: Delete Resource
      description: >-
        Delete a resource. Terminates the instance on the vendor and marks it as
        deleted.
      operationId: delete_resource_resources__resource_id__delete
      parameters:
        - name: resource_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Resource Id
        - name: force
          in: query
          required: false
          schema:
            type: boolean
            default: false
            title: Force
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteResourceResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    DeleteResourceResponse:
      properties:
        resource_id:
          type: string
          format: uuid
          title: Resource Id
        status:
          type: string
          title: Status
        message:
          type: string
          title: Message
      type: object
      required:
        - resource_id
        - status
        - message
      title: DeleteResourceResponse
      description: Response from deleting a resource.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````