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

# Delete Post

Overview

* Deletes a post by id. JSONPlaceholder simulates deletion and returns a success status without persisting.

Path parameter

* id (number): The post id to delete.

Example usage

```api theme={null}
- name: Delete post 1
  method: DELETE
  path: /posts/1
```

Response notes

* Status 200: JSONPlaceholder typically returns an empty object or success.
* Data is not actually removed from subsequent GET responses on /posts.

Tips

* Use after creating a post to show lifecycle, then GET to show read-only nature of the dataset.


## OpenAPI

````yaml DELETE /posts/{id}
openapi: 3.1.0
info:
  title: JSONPlaceholder Demo API
  description: >-
    Demo OpenAPI spec wired to JSONPlaceholder
    (https://jsonplaceholder.typicode.com) to showcase Mintlify 'Try it out'.
  version: 1.0.0
servers:
  - url: https://jsonplaceholder.typicode.com
security: []
paths:
  /posts/{id}:
    delete:
      summary: Delete a post
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: integer
      responses:
        '200':
          description: Deleted (mocked)

````