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

# Delete a Deck

> Permanently delete a deck. All underlying data will also be removed.



## OpenAPI

````yaml /api-reference/v1.json delete /decks/{deckId}
openapi: 3.0.4
info:
  title: Deck API
  description: "# Deck API makes it straightforward for users to connect to any portal securely and quickly.\r\n\r\n### Welcome! Looking for a quick introduction to our API? Check out the 🚀[Quickstart guide](https://docs.deck.co/guides/guides/quickstart).\r\n\r\nGetting started is easy:\r\n\r\n1. Create an account using the [dashboard](https://dashboard.deck.co) to get your client id and secret\r\n2. Enter your client id and secret in the Authentication section below\r\n3. Hit the \"Try\" buttons below for each endpoint.\r\n\r\nHappy querying!"
  contact:
    name: Ready to start building? Contact us!
    url: https://deck.co
  version: v1
servers:
  - url: https://live.deck.co/api/v1
    description: Deck API
  - url: https://sandbox.deck.co/api/v1
    description: Deck Sandbox API (Enterprise only)
security: []
tags:
  - name: Agents
    description: Agent management
  - name: Connection
    description: Manage connections
  - name: Connections
    description: Endpoints for creating and managing workflow connections.
  - name: Decks
    description: Endpoints related to decks.
  - name: Jobs
    description: Endpoints related to jobs.
  - name: Sources
    description: Endpoints for managing and searching data sources
  - name: Link
    description: >-
      These endpoints are used by the Link widget. They can also be used for
      creating your own UX experience and connecting data from utility data
      sources.
paths:
  /decks/{deckId}:
    delete:
      tags:
        - Decks
      summary: Delete a Deck
      description: Permanently delete a deck. All underlying data will also be removed.
      parameters:
        - name: deckId
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/Datadeck_Api_Application_Models_Decks_DeckDeleteResponse
            text/json:
              schema:
                $ref: >-
                  #/components/schemas/Datadeck_Api_Application_Models_Decks_DeckDeleteResponse
            application/json+encrypted:
              schema:
                $ref: >-
                  #/components/schemas/Datadeck_Api_Application_Models_Decks_DeckDeleteResponse
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Microsoft_AspNetCore_Mvc_ProblemDetails'
            text/json:
              schema:
                $ref: '#/components/schemas/Microsoft_AspNetCore_Mvc_ProblemDetails'
            application/json+encrypted:
              schema:
                $ref: '#/components/schemas/Microsoft_AspNetCore_Mvc_ProblemDetails'
        '401':
          description: Unauthorized - Invalid API key
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Microsoft_AspNetCore_Mvc_ProblemDetails'
            text/json:
              schema:
                $ref: '#/components/schemas/Microsoft_AspNetCore_Mvc_ProblemDetails'
            application/json+encrypted:
              schema:
                $ref: '#/components/schemas/Microsoft_AspNetCore_Mvc_ProblemDetails'
      security:
        - client_id: []
          secret: []
components:
  schemas:
    Datadeck_Api_Application_Models_Decks_DeckDeleteResponse:
      required:
        - deck_id
        - deleted
      type: object
      properties:
        deck_id:
          type: string
          description: The identifier for the deck.
          format: uuid
        deleted:
          type: boolean
          description: Indicates if the deletion was successful.
      additionalProperties: false
    Microsoft_AspNetCore_Mvc_ProblemDetails:
      type: object
      properties:
        type:
          type: string
          nullable: true
        title:
          type: string
          nullable: true
        status:
          type: integer
          format: int32
          nullable: true
        detail:
          type: string
          nullable: true
        instance:
          type: string
          nullable: true
      additionalProperties: {}
  securitySchemes:
    client_id:
      type: apiKey
      description: Enter your client id
      name: x-deck-client-id
      in: header
    secret:
      type: apiKey
      description: Enter your secret
      name: x-deck-secret
      in: header

````