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

# 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

---

[API](https://skmtc.net/siafoundation/apis/renterd-api.md) · [All operations](https://skmtc.net/siafoundation/apis/renterd-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/siafoundation/renterd-api/versions/184a3d5207da/schema)
