---
name: "gt-admin-user-delete"
section: "1"
platform: "linux"
package: "gitea-cli"
version: "1.0.0-1"
release: "Arch Linux 2026-11-07"
platforms: ["linux"]
url: "https://carta.tech/man/gt-admin-user-delete"
---

# gt-admin-user-delete(1)

Delete an account

## NAME

gt-admin-user-delete - Delete an account

## SYNOPSIS

**gt admin user delete \<username\> \[flags\]**

## DESCRIPTION

Delete an account. Gitea refuses while the user owns repositories or organizations, unless --purge deletes the account with everything it owns.

## OPTIONS

**-h**, **--help**\[=false\]\
 	help for delete

**--purge**\[=false\]\
 	Also delete the user's repositories, packages, organization memberships and the organizations they solely own

## OPTIONS INHERITED FROM PARENT COMMANDS

**--debug**\[=false\]\
 	Log the method, URL, status, and duration of each HTTP request to stderr

**--host**=""\
 	Gitea instance **URL**, including any base path

**--interactive**\[=false\]\
 	Allow prompts with machine output

**--no-input**\[=false\]\
 	Disable prompts and implicit editor/browser interactions

**--sudo**=""\
 	Perform API requests as this **user** (requires an administrator account)

**--user**=""\
 	Account **name** on the selected instance

**-y**, **--yes**\[=false\]\
 	Accept confirmations without prompting

## EXAMPLE

```
$ gt admin user delete spammer
# also delete the user's repositories, packages and organization memberships (and organizations they solely own)
$ gt admin user delete spammer --purge
```

## SEE ALSO

**[gt-admin-user(1)](/man/gt-admin-user/1.md)**
