---
title: "Delete multiple posts"
method: POST
path: "/posts/bulk_delete"
tags: ["Posts"]
---

# Delete multiple posts

`POST /posts/bulk_delete`

## Request

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

Deletes multiple accessible, editable scheduled or draft posts by ID. All accessible posts are checked before deletion; if any is published or cannot be edited, no posts are deleted. IDs outside the accessible accounts are ignored.

## Request body

- object
  - `ids` integer[], required: IDs of posts to delete.

## Response `200`

Posts deleted successfully. Response body is empty.

## Other responses

- `400`: Bad Request
- `403`: An accessible post is published or the user does not have permission to edit it. No posts are deleted.
- `500`: Server error while deleting one of the posts

---

[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)
