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

# Unpublish a marketplace item by published-item id

> Delete the PublishedItem with the given id and cascade-delete every UserAcquiredItem that referenced it. Admin/Superadmin only; ADMIN must also be the original publisher.



## OpenAPI

````yaml /api-reference/openapi.yaml delete /api/marketplace/{id}
openapi: 3.0.3
info:
  title: Tether Relay and Tether API
  version: 1.0.0
  description: >-
    Route-derived OpenAPI contract generated from tether-relay backend sources.
    Regenerate with scripts/sync-openapi-from-backend.mjs.
servers:
  - url: https://your-instance.example.com
    description: Production
  - url: http://localhost:2212
    description: Local API service
security: []
tags:
  - name: AI
  - name: Applications
  - name: Approval
  - name: Auth
  - name: Automations
  - name: Calls
  - name: Campaigns
  - name: Contact Analytics
  - name: Contact Metrics
  - name: Contact Notes
  - name: Contacts
  - name: Conversation Monitor
  - name: Conversations
  - name: Departments
  - name: Email
  - name: Escalation Dashboard
  - name: Event Logs
  - name: Google Sheets
  - name: Marketplace
  - name: Messages
  - name: Notification Sounds
  - name: Notifications
  - name: Org Snapshots
  - name: Organizations
  - name: Outreach
  - name: Outreach Metrics
  - name: Outreach Sources
  - name: Pipelines
  - name: Processes
  - name: Prompts
  - name: Reminders
  - name: Sms
  - name: Templates
  - name: Traces
  - name: Training
  - name: Upload
  - name: User Snapshots
  - name: Users
  - name: Vertical
  - name: Webchats
  - name: Webhook
paths:
  /api/marketplace/{id}:
    delete:
      tags:
        - Marketplace
      summary: Unpublish a marketplace item by published-item id
      description: >-
        Delete the PublishedItem with the given id and cascade-delete every
        UserAcquiredItem that referenced it. Admin/Superadmin only; ADMIN must
        also be the original publisher.
      operationId: unpublish_item
      parameters:
        - in: path
          name: id
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Item unpublished
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MarketplaceUnpublishResponse'
        '403':
          description: Only Admin/Superadmin can unpublish or not the original publisher
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MarketplaceErrorResponse'
        '404':
          description: Published item not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MarketplaceErrorResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MarketplaceErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    MarketplaceUnpublishResponse:
      type: object
      properties:
        success:
          type: boolean
          example: true
        message:
          type: string
      required:
        - success
        - message
      additionalProperties: true
      example:
        success: true
        message: Marketplace listing removed and 3 acquisitions cleaned up
    MarketplaceErrorResponse:
      type: object
      description: Generic error envelope returned by Marketplace endpoints.
      properties:
        error:
          type: string
        details:
          type: string
      required:
        - error
      additionalProperties: true
      example:
        error: Marketplace item not found
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````