--- title: '`glab service-account delete`' stage: AI Clients group: Developer Clients info: To determine the technical writer assigned to the Stage/Group associated with this page, see --- Delete a service account. ## Synopsis 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`. ```plaintext glab service-account delete [flags] ``` ## Aliases ```plaintext del ``` ## Examples ```console # 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 ``` ## Options ```plaintext -g, --group group Delete a service account 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 ```plaintext -h, --help Show help for this command. ```