---
title: "Check If OSD is Safe to Destroy"
method: GET
path: "/api/osd/safe_to_destroy"
tags: ["OSD"]
---

# Check If OSD is Safe to Destroy

`GET /api/osd/safe_to_destroy`

:type ids: int|[int]

## Query parameters

- `ids` string, required

## Response `200`

OK

- object
  - `active` integer[], required
  - `is_safe_to_destroy` boolean, required — Is OSD safe to destroy?
  - `missing_stats` string[], required
  - `safe_to_destroy` string[], required — Is OSD safe to destroy?
  - `stored_pgs` string[], required — Stored Pool groups in Osd

## Other responses

- `400` — Operation exception. Please check the response body for details.
- `401` — Unauthenticated access. Please login first.
- `403` — Unauthorized access. Please check your permissions.
- `500` — Unexpected error. Please check the response body for the stack trace.

---

[API](https://skmtc.net/ceph/apis/ceph-rest-api.md) · [All operations](https://skmtc.net/ceph/apis/ceph-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ceph/ceph-rest-api/versions/b03ae23c3806/schema)
