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

# Delete Post

> Deletes a single post based on the ID



## OpenAPI

````yaml DELETE /post
openapi: 3.0.1
info:
  title: Post API
  description: API for managing posts with media file uploads
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://our-secret-api-url.com
security: []
paths:
  /post:
    delete:
      description: Deletes a single post based on the ID
      parameters:
        - $ref: '#/components/parameters/X-API-KEY'
      requestBody:
        description: ID of the post to delete
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                id:
                  type: integer
                  description: ID of the post to delete
              required:
                - id
      responses:
        '200':
          description: Post deleted successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: integer
                    description: ID of the deleted post
                  parentId:
                    type: integer
                    nullable: true
                    description: ID of the parent post, if applicable
                nullable: true
        '400':
          description: Invalid input provided
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - bearerAuth: []
components:
  parameters:
    X-API-KEY:
      name: X-API-KEY
      description: API key required for authentication
      in: header
      required: true
      schema:
        type: string
  schemas:
    Error:
      required:
        - error
        - message
      type: object
      properties:
        error:
          description: Error code
          type: integer
          format: int32
        message:
          description: Error message
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````