admin

Delete Public Repo

Delete a public repo and everything derived from it, for everyone.

This is not the per-user unlink at DELETE /repos/{id}. It removes the shared repo row, so Postgres cascades away every user's library entry, every workspace membership, every team share, and every snapshot. People who did not ask for this lose the repo from their dashboard.

Which is why confirm has to spell out owner/name, why the affected counts are read before the cascade destroys them, and why the audit row is written before the purge rather than after.

Refuses while an index is in flight. Deleting mid-run cascades away the snapshots row while the Modal container is still uploading to its prefix, and anything it writes to R2 after that point is unreachable forever, since nothing sweeps R2 orphans.

delete/admin/repos/{repo_id}

Path parameters

repo_idstring required

Query parameters

confirmstring required

Must equal the repo's owner/name. Guards against a mis-click.

Must equal the repo's owner/name. Guards against a mis-click.

Response

Successful Response

okboolean
repo_slugstring required
snapshots_deletedinteger
storage_objects_removedinteger
r2_objects_removedinteger
linked_users_removedinteger
workspaces_affectedinteger
teams_affectedinteger

Changes

No recorded changes to this endpoint across all 1 revision of this API.