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

# Unsubscribe from trigger

> Unsubscribe by subscription key (params + delivery.url). Eager teardown — subscriptions also expire naturally on TTL.



## OpenAPI

````yaml https://app.stainless.com/api/spec/documented/smithery/openapi.documented.yml delete /connect/{namespace}/{connectionId}/.triggers/{triggerName}
openapi: 3.1.0
info:
  title: Smithery Platform API
  description: >-
    API for the Smithery platform — discover, deploy, and manage MCP (Model
    Context Protocol) servers. Provides endpoints for browsing the server
    registry, managing deployments, creating scoped access tokens, and
    connecting to MCP servers.
  version: 1.0.0
servers:
  - url: https://api.smithery.ai
security:
  - bearerAuth: []
tags:
  - name: servers
    description: >-
      Browse the MCP server registry, manage server configuration, and handle
      deployments
  - name: skills
    description: Discover and search reusable prompt-based skills for MCP servers
  - name: tools
    description: Search for MCP tools across all registered servers
paths:
  /connect/{namespace}/{connectionId}/.triggers/{triggerName}:
    delete:
      tags:
        - connect
      summary: Unsubscribe from trigger
      description: >-
        Unsubscribe by subscription key (params + delivery.url). Eager teardown
        — subscriptions also expire naturally on TTL.
      operationId: deleteSmithery.run:namespace:connectionId.triggers:triggerName
      parameters:
        - schema:
            type: string
          in: path
          name: namespace
          required: true
        - schema:
            type: string
          in: path
          name: connectionId
          required: true
        - schema:
            type: string
          in: path
          name: triggerName
          required: true
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeleteTriggerRequest'
      responses:
        '200':
          description: Subscription removed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Success'
        '404':
          description: Subscription not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    DeleteTriggerRequest:
      type: object
      properties:
        params:
          $ref: '#/components/schemas/LooseObject'
          default: {}
          description: >-
            The same params used at subscribe time. Forms part of the
            subscription key.
        delivery:
          $ref: '#/components/schemas/UnsubscribeDelivery'
      required:
        - params
        - delivery
      additionalProperties: false
    Success:
      type: object
      properties:
        success:
          type: boolean
          const: true
      required:
        - success
      additionalProperties: false
    Error:
      type: object
      properties:
        error:
          type: string
          example: not_found
        message:
          type: string
          example: Resource not found
      required:
        - error
        - message
      additionalProperties: false
    LooseObject:
      type: object
      propertyNames:
        type: string
      additionalProperties:
        x-stainless-any: true
    UnsubscribeDelivery:
      type: object
      properties:
        url:
          type: string
          description: >-
            The delivery URL of the subscription to remove. Together with
            name+params it forms the subscription key.
          example: https://my-app.example.com/events
      required:
        - url
      additionalProperties: false
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Smithery API key as Bearer token

````