Scroll to navigation

glab(1) glab(1)

NAME

glab-service-account-delete - Delete a service account.

SYNOPSIS

glab service-account delete [flags]

DESCRIPTION

Delete a service account of a project or a group, by its ID or username.

The account's contributions, such as merge requests and comments, are moved to the ghost user. Anything authenticating with the account's tokens stops working.

GitLab deletes the account in the background, so it can still appear in glab service-account list for a short time.

A numeric argument is always treated as an ID. IDs and usernames come from glab service-account list.

OPTIONS

-g, --group="" Delete a service account of a group instead of a project. Accepts a group ID or full path.

-R, --repo="" Select another repository. You can use either OWNER/REPO or GROUP/NAMESPACE/REPO. The full URL or Git URL is also accepted.

-y, --yes[=false] Skip the confirmation prompt.

OPTIONS INHERITED FROM PARENT COMMANDS

-h, --help[=false] Show help for this command.

EXAMPLE

# Delete service account 42 of the current project, after confirming
glab service-account delete 42
# Delete it without a confirmation prompt
glab service-account delete 42 --yes
# Delete a service account by its username
glab service-account delete release-bot
# Delete a service account of a specific project
glab service-account delete 42 --repo user/my-repo
# Delete a group's service account
glab service-account delete 42 --group my-group

SEE ALSO

glab-service-account(1)

Nov 2026 Auto generated by spf13/cobra