Browse API

Delete a project

Request human-confirmed project deletion after checking blockers.

DELETE/api/v0/projects/<key>

Request and authority

DELETE https://repopack.com/api/v0/projects/<key>
Authorization: Bearer <token>

<key> is the permanent project key. Only an account with project-owner authority can request deletion. The server checks blockers before asking for confirmation and checks them again when executing the confirmed action. The first request normally returns a 428 guarded-action challenge; see guarded API actions. A successful confirmed outcome has {"ok":true,"status":"deleting"}; deletion is a lifecycle operation, not an immediate guarantee that all data is gone.

Status Meaning
401 The token is absent/invalid, or the caller cannot authenticate.
404 The project key is not an active project.
403 The viewer is not a project owner.
409 The project cannot be deleted yet; the response names blockers. Re-evaluate before requesting a new confirmation.
428 The proposed deletion is awaiting a human decision. It has not been performed.

Deletion is destructive. Do not retry a confirmed delete merely because the client timed out: first observe the guarded action with the same account and read the project. The browser confirmation is separate from bearer-token authorization.

Once the project enters deleting, new child records are refused, including Release records, project subscriptions and notification-outbox records. Deletion waits for child inserts that already hold its lifecycle lock; an insert arriving behind an in-flight deletion waits and is refused if deletion commits. This does not make the background purge instantaneous or atomic with external cleanup.