Repository listing, creation, retrieval, and deletion are available via the CLI and SDK:
- CLI:
wh repo create, wh repo view, wh repo list, wh repo delete — see CLI commands
- SDK:
client.repo.* methods — see SDK client
Repository deletion hides the repository immediately and schedules permanent removal after the retention window. Immediate irreversible purge is not available via the public CLI or SDK.
Deletion can be blocked by outstanding references to the repo. Three kinds of reference block it:
- Cross-repo subscriptions — a subscription in another repo that sources from this repo.
- PAT committer bindings — a personal access token whose default committer identity points at a thing in this repo.
- Inbound cross-repo references — assertions or things in another repo that reference things or assertions in this repo.
Same-repo subscriptions are paused automatically during deletion and do not block it. Remove all blocking references before retrying. To clear a PAT binding, revoke the token and reissue it without a committer identity pointing at this repo — see PAT docs.
wh repo delete <org>/<repo>
await client.repo.delete(orgName, repoName) // returns { graceExpiresAt: Date }