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

# distribution.subscription.delete

> Removes the Musixmatch premium plan from a user when they unsubscribe on the distributor's platform.



## OpenAPI

````yaml enterprises/distribution/openapi.json post /ws/1.1/distribution.subscription.delete
openapi: 3.1.0
info:
  title: Musixmatch Distribution API
  version: 1.0.0
  description: >-
    API for music distributors to submit releases and lyrics to the Musixmatch
    catalog.
servers:
  - url: https://api.musixmatch.com
security:
  - apiKey: []
paths:
  /ws/1.1/distribution.subscription.delete:
    post:
      tags:
        - Subscriptions
      summary: distribution.subscription.delete
      description: >-
        Removes the Musixmatch premium plan from a user when they unsubscribe on
        the distributor's platform.
      operationId: revokeSubscription
      parameters:
        - $ref: '#/components/parameters/user_id'
      responses:
        '200':
          description: Subscription revoked.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubscriptionEnvelope'
              example:
                message:
                  header:
                    status_code: 200
                    execute_time: 0.32
                  body:
                    subscription:
                      user_id: mxm:123456789012345678901
                      status: revoked
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  parameters:
    user_id:
      name: user_id
      in: query
      required: true
      schema:
        type: string
      description: The Musixmatch user ID obtained via token introspection
  schemas:
    SubscriptionEnvelope:
      type: object
      properties:
        message:
          type: object
          properties:
            header:
              type: object
              properties:
                status_code:
                  type: integer
                  description: HTTP status code
                execute_time:
                  type: number
                  description: Server-side execution time in seconds
            body:
              type: object
              properties:
                subscription:
                  type: object
                  properties:
                    user_id:
                      type: string
                    plan_id:
                      type: string
                      description: Present when activating a subscription
                    status:
                      type: string
                      enum:
                        - active
                        - revoked
    ErrorResponse:
      type: object
      properties:
        message:
          type: object
          properties:
            header:
              type: object
              properties:
                status_code:
                  type: integer
                  description: HTTP status code
                execute_time:
                  type: number
                  description: Server-side execution time in seconds
            body:
              type: object
              properties:
                error:
                  type: object
                  properties:
                    code:
                      oneOf:
                        - type: string
                        - type: number
                      description: Application-level error code
                    namespace:
                      type: string
                      description: Application-level error namespace
                    extraData:
                      description: Additional error context
  responses:
    Unauthorized:
      description: Unauthorized — missing or invalid API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    NotFound:
      description: Not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    apiKey:
      type: apiKey
      name: apikey
      in: query

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.