> ## 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.

# Revoke a subscription

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



## OpenAPI

````yaml /enterprises/distribution/openapi.json delete /distribution/subscriptions/{musixmatch_user_id}
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://varco-{partner}.musixmatch.com
    description: >-
      Replace {partner} with the identifier assigned to your organization during
      onboarding
    variables:
      partner:
        default: partner
        description: Identifier assigned to your organization during onboarding
security:
  - bearerAuth: []
paths:
  /distribution/subscriptions/{musixmatch_user_id}:
    delete:
      tags:
        - Subscriptions
      summary: Revoke a subscription
      description: >-
        Removes the Musixmatch premium plan from a user when they unsubscribe on
        the distributor's platform.
      operationId: revokeSubscription
      parameters:
        - name: musixmatch_user_id
          in: path
          required: true
          schema:
            type: string
          description: >-
            The Musixmatch user ID of the user whose subscription should be
            revoked
      responses:
        '200':
          description: Subscription revoked.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubscriptionEnvelope'
              example:
                message:
                  body:
                    subscription:
                      musixmatch_user_id: mxm:123456789012345678901
                      status: revoked
                  header:
                    status_code: 200
                    execute_time: 0.03
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  schemas:
    SubscriptionEnvelope:
      type: object
      properties:
        message:
          type: object
          properties:
            body:
              type: object
              properties:
                subscription:
                  type: object
                  properties:
                    musixmatch_user_id:
                      type: string
                    plan_id:
                      type: string
                      description: Present when activating a subscription
                    status:
                      type: string
                      enum:
                        - active
                        - revoked
            header:
              $ref: '#/components/schemas/MessageHeader'
    MessageHeader:
      type: object
      properties:
        status_code:
          type: number
          description: HTTP status code of the response
        execute_time:
          type: number
          description: Server execution time in seconds
    ErrorResponse:
      type: object
      properties:
        message:
          type: string
        data:
          type: object
          properties:
            error:
              type: object
              properties:
                code:
                  type: string
  responses:
    Unauthorized:
      description: Unauthorized — missing or invalid Bearer token
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    NotFound:
      description: Not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Access token obtained via the Client Credentials OAuth 2.0 flow at
        https://connect.musixmatch.com/oauth/token

````