---
title: "Remove a depot"
method: DELETE
path: "/depots/{depotId}"
tags: ["Depots"]
---

# Remove a depot

`DELETE /depots/{depotId}`

## Request

- Base URL: `https://api.spoke.com/public/v1`
- URL: `https://api.spoke.com/public/v1/depots/{depotId}`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/spoke/apis/spoke-api/docs/depots/:depotId/delete.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `depotId` string, required

## Response `204`

Depot removed successfully

## Other responses

- `400`: The request was invalid
- `401`: Unauthorized
- `500`: An internal server error occurred
- `default`: The default error model

---

[API](https://skmtc.dev/spoke/apis/spoke-api.md) - [All operations](https://skmtc.dev/spoke/apis/spoke-api/llms.txt) - [OpenAPI document](https://skmtc.dev/spoke/apis/spoke-api/revisions/a09d9194ae1c?raw)
