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

# Delete generation

> Delete a music generation record.

Permanently deletes a music generation and its record. Does not revoke credits for completed jobs.

**`DELETE /music-generations/{generationId}`**

## Path parameters

<ParamField path="generationId" type="string" required>
  Generation ID to delete.
</ParamField>

## Example

```bash theme={null}
curl -X DELETE "https://mvp.tryunsora.com/api/v1/music-generations/cm123abc" \
  -H "Authorization: Bearer uns_live_YOUR_API_KEY"
```


## OpenAPI

````yaml DELETE /music-generations/{generationId}
openapi: 3.1.0
info:
  title: Unsora API
  version: 1.2.0
  description: >-
    Public API for Unsora integrations. Authenticate with Clerk JWT or
    uns_live_* API key. API keys are rate-limited to 60 requests/minute and
    support idempotency keys. Async jobs complete via polling GET
    /image/status/{id}.
servers:
  - url: https://mvp.tryunsora.com/api/v1
    description: Versioned API (recommended)
security: []
tags:
  - name: Clippings
  - name: Connect
  - name: Image Generations
  - name: Music Generations
  - name: Influencer Studio
  - name: Posts
  - name: Thumbnails
  - name: User
  - name: Video Generations
paths:
  /music-generations/{generationId}:
    delete:
      tags:
        - Music Generations
      summary: Delete a music generation
      parameters:
        - name: generationId
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Deleted
          content:
            application/json:
              schema:
                $ref: 190bf88b-4b39-43e0-a372-c739e196e793
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    ErrorResponse:
      type: object
      properties:
        success:
          type: boolean
        error:
          type: string
        code:
          type: string
        message:
          type: string
      required:
        - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Clerk session JWT or Unsora API key (uns_live_*)

````