Skip to main content
DELETE
/
admin
/
users
/
{username}
Delete a user
curl --request DELETE \
  --url https://gogs.example.com/api/v1/admin/users/{username} \
  --header 'Authorization: <api-key>'

Documentation Index

Fetch the complete documentation index at: https://gogs.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Personal access token. Use format: token {YOUR_ACCESS_TOKEN}

Path Parameters

username
string
required

Username

Response

The resource has been successfully deleted.