Skip to content

Delete a forge connection and its unreferenced credential (ADR-0060)

DELETE
/v1/connections/{id}
curl --request DELETE \
--url https://example.com/v1/connections/example

Two deliberate safeties:

  1. Bound repos block the delete unless unbind_repos=true. A Project is a repo binding (ADR-0046), so deleting a connection deletes governance — the same reasoning that stops resync from ever unbinding. A one-word query parameter is cheap; a silently deleted Environment is not recoverable from the UI.
  2. A shared credential survives. Every GitHub App installation points at the one github-app handle, so deleting one installation must not pull the material out from under the others. The secret is removed only when no remaining connection references that handle.
id
required
string

Connection id

unbind_repos
boolean

Acknowledge that the connection’s Projects go with it

Connection deleted

Requires Administer on the org

No such connection, or no registry wired

The connection still has bound repos (Projects)