---
title: "Delete post"
method: DELETE
path: "/api/posts/{id}"
tags: ["Posts"]
---

# Delete post

`DELETE /api/posts/{id}`

## Request

- Base URL: `https://api.postproxy.dev`
- URL: `https://api.postproxy.dev/api/posts/{id}`
- Auth: HTTP bearer

Deletes a post from the database. By default this does not remove the post from social media platforms; pass delete_on_platform=true to also delete it from platforms first.

## Path parameters

- `id` string, required

## Query parameters

- `delete_on_platform` boolean
- `profile_group_id` string

## Headers

- `Idempotency-Key` string

## Response `200`

Post deleted

- object
  - `deleted` boolean

## Other responses

- `401`: Invalid, missing, or insufficient API key permissions.
- `404`: Resource does not exist or is not accessible.

---

[API](https://skmtc.dev/postproxy/apis/postproxy-social-media-api.md) - [All operations](https://skmtc.dev/postproxy/apis/postproxy-social-media-api/llms.txt) - [OpenAPI document](https://skmtc.dev/postproxy/apis/postproxy-social-media-api/revisions/d54482ac4ce7?raw)
