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

# Delete a post

> Deletes a draft or scheduled post. Already-published posts are removed from your history only (not from the platform).



## OpenAPI

````yaml /openapi.json delete /posts/{id}
openapi: 3.1.0
info:
  title: Market or Die API
  version: 1.0.0
  description: >-
    Compose, schedule, and ship posts to every connected channel —
    programmatically.
servers:
  - url: https://api.marketordie.io/v1
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Account
    description: Who the API key acts as.
  - name: Channels
    description: Connected accounts you can post to.
  - name: Media
    description: Upload images to attach to posts.
  - name: Posts
    description: Create, schedule, list, and delete posts.
  - name: Leaderboard
    description: Team standings by points.
paths:
  /posts/{id}:
    delete:
      tags:
        - Posts
      summary: Delete a post
      description: >-
        Deletes a draft or scheduled post. Already-published posts are removed
        from your history only (not from the platform).
      operationId: deletePost
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Deleted
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      id:
                        type: string
                      deleted:
                        type: boolean
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  responses:
    Unauthorized:
      description: Missing or invalid API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: unauthorized
              message: Invalid or revoked API key.
    NotFound:
      description: Resource not found.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: not_found
              message: Post not found.
  schemas:
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Your API key as a bearer token: `Authorization: Bearer mod_live_…`. (You
        can also send it as `x-api-key`.)

````