---
title: "Get partner deletion impact"
method: GET
path: "/partners/{id}/deletion-impact"
tags: ["Partners"]
---

# Get partner deletion impact

`GET /partners/{id}/deletion-impact`

## Request

- Base URL: `https://api.production.yourmedley.com`
- URL: `https://api.production.yourmedley.com/partners/{id}/deletion-impact`
- Auth: HTTP bearer

Returns counts of downstream records (active cohorts via programs, partner coaches) that would be orphaned by deleting this partner. Used by the UI to warn admins before confirming deletion.

## Path parameters

- `id` string, uuid, required

## Response `200`

Deletion impact retrieved successfully

- object
  - `success` boolean
  - `data` object
    - `active_cohort_count` integer: Number of non-deleted cohorts attached to non-deleted programs of this partner
    - `partner_coach_count` integer: Number of non-deleted coach_profiles with this partner_id

## Other responses

- `401`: Unauthorized
- `404`: Partner not found

---

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