Delete a repository
You can permanently delete a repository you own from the website, REST API, or CLI. Maintainers, contributors, and viewers cannot delete a repository.
Deletion removes the Git history, issues, projects, labels, milestones, memberships, import receipt, and provisioning records. You cannot undo it.
Delete from the website
- Open the repository.
- Find Delete repository near the bottom of the Code page.
- Type the full
OWNER/REPOSITORYname shown in the confirmation field. - Select Delete repository.
Delete with the CLI
openagents repo delete OWNER/REPOSITORY --yes
You can run the same command through npx:
npx --yes @openagentsinc/cli@latest repo delete OWNER/REPOSITORY --yes
Delete with the REST API
curl --request DELETE \
--header "Authorization: Bearer $OPENAGENTS_TOKEN" \
https://openagents.com/api/v1/repos/OWNER/REPOSITORY
Success returns 204 No Content.