---
title: "Delete Orphans Bulk"
method: POST
path: "/admin/monitor/fix/citations/delete-orphans"
tags: ["admin-monitor-fix"]
---

# Delete Orphans Bulk

`POST /admin/monitor/fix/citations/delete-orphans`

## Request

- Base URL: `https://api.casenode.ai`
- URL: `https://api.casenode.ai/admin/monitor/fix/citations/delete-orphans`
- Auth: none declared. Required headers: `authorization`

Bulk-delete orphan citation edges from candidate list.

Candidates come from a finding's `proposed_fix.edge_ids`. Each is re-checked
against current rows; only still-orphaned edges are deleted. Skipped rows
are reported with reasons.

## Query parameters

- `dry_run` boolean

## Headers

- `authorization` string, required

## Request body

- DeleteOrphansBulkRequest
  - `finding_id` integer, nullable: audit_findings.id whose proposed_fix supplied these candidates.
  - `edge_ids` string[], required: Candidate orphan edge ids (max 500).

## Response `200`

Successful Response

- DeleteOrphanResponse
  - `applied_count` integer, required
  - `skipped_count` integer, required
  - `skipped` object[]
  - `change_ids` string[]
  - `dry_run` boolean

## Other responses

- `422`: Validation Error

---

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