Skip to content

Latest commit

 

History

History
63 lines (44 loc) · 1.77 KB

delete.md

File metadata and controls

63 lines (44 loc) · 1.77 KB
title `glab deploy-token delete`
stage AI Clients
group Developer Clients
info To determine the technical writer assigned to the Stage/Group associated with this page, see <https://handbook.gitlab.com/handbook/marketing/product-and-technical-marketing/technical-writing/#assignments>

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

# 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.