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

# Delete post

> Deletes one scheduled post by post ID.

A post can only be deleted when all of its social account deliveries are
still `NOT_STARTED`.




## OpenAPI

````yaml /openapi.yaml delete /posts/{postId}
openapi: 3.1.0
info:
  title: WoopSocial API
  version: 1.0.0
  summary: API for WoopSocial integrations.
  description: >
    This is the public-facing OpenAPI contract for WoopSocial. It supports
    scheduling posts for various social media platforms such as Facebook,
    Instagram, LinkedIn, LinkedIn Pages, Pinterest, Threads, TikTok, X (formerly
    Twitter) and YouTube.
servers:
  - url: https://api.woopsocial.com/v1
    description: WoopSocial API URL.
  - url: http://localhost:9123/api/external/v1
    description: Local WoopSocial API URL.
security: []
tags:
  - name: Posts
    description: Post scheduling endpoints.
  - name: Projects
    description: Project discovery endpoints.
  - name: Social Accounts
    description: Connected social account discovery endpoints.
  - name: Media
    description: Media upload endpoints.
  - name: Webhooks
    description: Webhook endpoint management.
  - name: Health
    description: Basic connectivity endpoints.
paths:
  /posts/{postId}:
    delete:
      tags:
        - Posts
      summary: Delete post
      description: |
        Deletes one scheduled post by post ID.

        A post can only be deleted when all of its social account deliveries are
        still `NOT_STARTED`.
      operationId: deletePost
      parameters:
        - $ref: '#/components/parameters/PostId'
      responses:
        '204':
          description: Post deleted.
        '404':
          description: Post not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeletePostErrorResponse'
        '409':
          description: Post cannot be deleted in its current state.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeletePostErrorResponse'
        '500':
          description: Internal server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeletePostErrorResponse'
      security:
        - ApiKey: []
components:
  parameters:
    PostId:
      name: postId
      in: path
      required: true
      schema:
        type: string
      description: Post identifier.
  schemas:
    DeletePostErrorResponse:
      type: object
      additionalProperties: false
      required:
        - code
        - message
      properties:
        code:
          $ref: '#/components/schemas/DeletePostErrorCode'
        message:
          type: string
    DeletePostErrorCode:
      type: string
      enum:
        - POST_NOT_FOUND
        - POST_NOT_DELETABLE
        - INTERNAL_ERROR
  securitySchemes:
    ApiKey:
      type: http
      scheme: bearer
      bearerFormat: API key

````