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

# Remove an entitlement from a subscription

> Deletes an entitlement from a subscription



## OpenAPI

````yaml specs/entitlements_api_docs.json delete /api/v1/sub-entitlement/{subscriptionId}/{entitlementCode}
openapi: 3.1.0
info:
  title: Entitlement API
  version: 1.0.0
  description: API for managing entitlements and plan entitlement quotas.
servers:
  - url: https://dev-entitlements-api.iqraa.ai/api/v1
    description: Production server
security: []
tags: []
paths:
  /api/v1/sub-entitlement/{subscriptionId}/{entitlementCode}:
    delete:
      tags:
        - Subscription Entitlements
      summary: Remove an entitlement from a subscription
      description: Deletes an entitlement from a subscription
      operationId: SubEntitlementController_removeEntitlement
      parameters:
        - name: x-admin-api-key
          in: header
          description: The API key to access the admin API
          required: true
          schema:
            type: string
        - name: subscriptionId
          required: true
          in: path
          description: ID of the subscription
          schema:
            type: string
        - name: entitlementCode
          required: true
          in: path
          description: Code of the entitlement
          schema:
            type: string
      responses:
        '200':
          description: Entitlement removed successfully
        '401':
          description: Unauthorized - Missing or invalid admin API key
        '404':
          description: Not Found - Entitlement or subscription not found

````