---
title: "Remove offline hosts"
method: POST
path: "/bus/hosts/remove"
---

# Remove offline hosts

`POST /bus/hosts/remove`

Removes hosts that have been offline for the specified duration

## Request body

- object
  - `maxDowntimeHours` integer
  - `maxConsecutiveScanFailures` integer

## Response `200`

Number of hosts removed

- integer

## Other responses

- `400` — Malformed request
- `500` — Internal server error

## Changes

- **2024-12-17** `acbb46c060cb` — 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/hosts/remove/post.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/e8ca82ef1fcf/schema)
