---
title: "Remove objects by prefix"
method: POST
path: "/bus/objects/remove"
---

# Remove objects by prefix

`POST /bus/objects/remove`

Removes all objects with the specified prefix.

## Request body

- object
  - `bucket` string — The name of the bucket.
  - `prefix` string — The prefix of objects to remove

## Response `200`

Successfully removed objects

## Other responses

- `400` — Malformed request
- `500` — Internal server error

## Changes

- **2024-12-17** `d5dec74bd45a` — 1 info
  - endpoint added
- **2024-12-09** `f062c35d8f47` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/siafoundation/apis/renterd-api/changes/bus/objects/remove/post.md)

---

[API](https://skmtc.dev/siafoundation/apis/renterd-api.md) · [All operations](https://skmtc.dev/siafoundation/apis/renterd-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/siafoundation/renterd-api/revisions/d5dec74bd45a/schema)
