---
title: "Purge Deleted Organizations"
method: POST
path: "/cron/purge_deleted_organizations"
tags: ["cron"]
---

# Purge Deleted Organizations

`POST /cron/purge_deleted_organizations`

## Request

- Base URL: `https://api.rowansci.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.rowansci.com/cron/purge_deleted_organizations`
- Auth: API key in header `X-API-Key`
- TypeScript: <https://skmtc.dev/rowansci/apis/eyrie/docs/cron/purge_deleted_organizations/post.ts> (a function with typed inputs; its response is checked against the schema)

Delete (or report on) the projects of organizations deleted more than ORGANIZATION_RETENTION_DAYS ago.
Their workflows and proteins follow through the inactive-workflow and inactive-protein crons.
Set dry_run=False to actually delete.

## Query parameters

- `dry_run` boolean

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-15** `2422ab96cdf3`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/rowansci/apis/eyrie/changes/cron/purge_deleted_organizations/post.md)

---

[API](https://skmtc.dev/rowansci/apis/eyrie.md) - [All operations](https://skmtc.dev/rowansci/apis/eyrie/llms.txt) - [OpenAPI document](https://skmtc.dev/rowansci/apis/eyrie/revisions/11711cda3e1b?raw)
