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

# Delete stack

> Delete a specific stack and its associated resources from a rental



## OpenAPI

````yaml https://console.gputrader.io/assets/gputrader-api.json delete /rentals/{rentalId}/stacks/{stackId}
openapi: 3.1.1
info:
  title: GPU Trader API
  version: 0.4.16
  description: This is the Swagger/OpenAPI-compatible GPUTrader API documentation
servers:
  - url: https://api.gputrader.io/v1
security: []
tags: []
paths:
  /rentals/{rentalId}/stacks/{stackId}:
    delete:
      tags:
        - Rentals
      summary: Delete stack
      description: Delete a specific stack and its associated resources from a rental
      parameters:
        - in: path
          name: rentalId
          required: true
          schema:
            type: string
          description: Rental ID
        - in: path
          name: stackId
          required: true
          schema:
            type: string
          description: Stack ID
      responses:
        '200':
          description: Stack successfully deleted
          content:
            application/json:
              schema:
                type: string
        '404':
          description: Rental or stack not found
        '409':
          description: Stack deletion in progress or has dependent resources
        '500':
          description: Internal server error
      security:
        - apiKeyAuth: []
components:
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key

````