正式なドキュメントは英語版であり、この日本語訳はAI支援翻訳により作成された参考用のものです。日本語訳の一部の内容は人間によるレビューがまだ行われていないため、翻訳のタイミングにより英語版との間に差異が生じることがあります。最新かつ正確な情報については、英語版をご参照ください。
ドキュメントに関する現在のご利用体験についてお聞かせください。アンケートにご協力ください。

glab deploy-token delete

Delete a deploy token.

Synopsis

Delete a deploy token of a project or a group, by its ID.

The deletion is permanent and takes effect immediately. Anything authenticating with the token stops working.

Deleting is not the revoke action from the GitLab UI, which the REST API does not expose. A revoked token stays listed and is reported as revoked, while a deleted token is gone from glab deploy-token list entirely.

Token IDs come from glab deploy-token list.

glab deploy-token delete <token-id> [flags]

Aliases

del

Examples

console
# Delete deploy token 42 of the current project, after confirming
glab deploy-token delete 42

# Delete it without a confirmation prompt
glab deploy-token delete 42 --yes

# Delete a deploy token of a specific project
glab deploy-token delete 42 --repo user/my-repo

# Delete a group's deploy token
glab deploy-token delete 42 --group group/sub-group

Options

  -g, --group group   Delete a deploy token of a group instead of a project. Accepts a group ID or full path.
  -R, --repo string   Select another repository. You can use either OWNER/REPO or GROUP/NAMESPACE/REPO. The full URL or Git URL is also accepted.
  -y, --yes           Skip the confirmation prompt.

Options inherited from parent commands

  -h, --help   Show help for this command.