---
title: "Deletes the post"
method: DELETE
path: "/posts/{postId}"
tags: ["Posts"]
---

# Deletes the post

`DELETE /posts/{postId}`

## Request

- Base URL: `https://socialbu.com/api/v1`
- URL: `https://socialbu.com/api/v1/posts/{postId}`
- Auth: HTTP bearer

Deletes an editable scheduled or draft post. Published posts cannot be deleted. Team members must have permission to edit the post.

## Path parameters

- `postId` integer, required

## Response `200`

Post deleted successfully. Response body is empty.

## Other responses

- `400`: Bad Request
- `403`: The post is published or the user does not have permission to edit it.
- `404`: Resource not found
- `500`: Server error while deleting the post

---

[API](https://skmtc.dev/socialbu/apis/socialbu-api.md) · [All operations](https://skmtc.dev/socialbu/apis/socialbu-api/llms.txt) · [OpenAPI document](https://skmtc.dev/socialbu/apis/socialbu-api/revisions/841b3ab0f671?raw)
