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

# Delete an object

`DELETE /worker/object/{key}`

Deletes an object from the database. The data is not removed from the network immediately. Instead, the autopilot prunes data from the contracts periodically, after that happens the host is no longer obliged to store the data and it's effectively removed from the network.

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

---

[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/revisions/184a3d5207da/schema)
