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

# Remove offline hosts

`POST /bus/hosts/remove`

Removes hosts that have been offline for the specified duration or have had too many consecutive scan failures

## Request body

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

## Response `200`

Number of hosts removed

- integer

## Other responses

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

---

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