> ## Documentation Index
> Fetch the complete documentation index at: https://myco-29fc6df6-sweetmantech-myc-3925-docs-document-the-apiar.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete Catalogs

> Unlink catalogs from an account. If no other accounts are linked to a catalog after removal, the catalog is automatically deleted (cascading to catalog_songs). Otherwise, only the account-catalog relationship is removed.

<Note>
  When unlinking a catalog from an account, if no other accounts remain linked to the catalog, the catalog is automatically deleted (cascading to catalog\_songs). Otherwise, only the account-catalog relationship is removed.
</Note>


## OpenAPI

````yaml delete /api/catalogs
openapi: 3.1.0
info:
  title: Recoup API
  description: >-
    API documentation for the Recoup platform - an AI agent platform for the
    music industry
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://recoup-api.vercel.app
security:
  - apiKeyAuth: []
paths:
  /api/catalogs:
    delete:
      description: >-
        Unlink catalogs from an account. If no other accounts are linked to a
        catalog after removal, the catalog is automatically deleted (cascading
        to catalog_songs). Otherwise, only the account-catalog relationship is
        removed.
      requestBody:
        description: Array of catalog-account pairs to remove
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeleteCatalogsRequest'
      responses:
        '200':
          description: Catalogs unlinked successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CatalogsResponse'
        '400':
          description: Bad request - missing catalog_id or account_id
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CatalogsErrorResponse'
      servers:
        - url: https://api.recoupable.com
components:
  schemas:
    DeleteCatalogsRequest:
      type: object
      required:
        - catalogs
      properties:
        catalogs:
          type: array
          items:
            $ref: '#/components/schemas/DeleteCatalogInput'
          description: Array of catalog-account pairs to remove
    CatalogsResponse:
      type: object
      description: Response containing catalogs data
      properties:
        status:
          type: string
          enum:
            - success
            - error
          description: Status of the request
        catalogs:
          type: array
          items:
            $ref: '#/components/schemas/Catalog'
          description: Array of catalog objects
        error:
          type: string
          description: Error message (only present if status is 'error')
    CatalogsErrorResponse:
      type: object
      properties:
        status:
          type: string
          enum:
            - error
          description: Status of the request
        error:
          type: string
          description: Error message describing what went wrong
    DeleteCatalogInput:
      type: object
      required:
        - catalog_id
        - account_id
      properties:
        catalog_id:
          type: string
          format: uuid
          description: Catalog ID to remove
        account_id:
          type: string
          format: uuid
          description: Account ID whose relationship will be removed
    Catalog:
      type: object
      description: A catalog with its metadata
      properties:
        id:
          type: string
          format: uuid
          description: Unique identifier for the catalog
        name:
          type: string
          description: Name of the catalog
        created_at:
          type: string
          format: date-time
          description: ISO timestamp of when the catalog was created
        updated_at:
          type: string
          format: date-time
          description: ISO timestamp of when the catalog was last updated
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Your Recoup API key. [Learn more](/quickstart#api-keys).

````