---
title: "Deletes an object"
method: DELETE
path: "/worker/object/{key}"
---

# Deletes an object

`DELETE /worker/object/{key}`

Deletes an object from the local database. The object is not removed from the network immediately. Instead, the autopilot prunes data from the network periodically.

## 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

## Changes

- **2024-12-12** `be2f724d7cd4` — 1 breaking
  - removed the media type `text/plain` for the response with the status `200`
- **2024-12-09** `2700783521b0` — 1 info
  - endpoint added
- **2024-12-09** `f062c35d8f47` — 1 breaking
  - api removed without deprecation

[Change history](https://skmtc.dev/siafoundation/apis/renterd-api/changes/worker/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/02bb01fcdd73/schema)
