---
title: "Delete object"
method: DELETE
path: "/bus/object/{key}"
tags: ["bus"]
---

# Delete object

`DELETE /bus/object/{key}`

Deletes an object from the bucket.

## Path parameters

- `key` string, required

## Query parameters

- `bucket` string, required — The name of the bucket.

## Response `200`

Successfully deleted object

## Other responses

- `404` — Object not found
- `500` — Internal server error

## Changes

- **2025-01-23** `c38282599c5a` — 2 info
  - removed the pattern `.*` from the `path` request parameter `key`
  - for the `path` request parameter `key`, the type/format was generalized from `string`/`` to ``/``
- **2024-12-18** `922f156353c9` — 1 breaking, 2 info
  - removed the media type `text/plain` for the response with the status `404`
  - api tag `bus` added
  - added the non-success response with the status `500`
- **2024-12-17** `6bb182f7a7d2` — 1 breaking
  - added the pattern `.*` to the `path` request parameter `key`
- **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/object/:key/delete.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/184a3d5207da/schema)
