Skip to main content
DELETE
/
user
/
emails
Delete email addresses
curl --request DELETE \
  --url https://gogs.example.com/api/v1/user/emails \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "emails": [
    "jsmith@example.com"
  ]
}
'

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}

Body

application/json
emails
string<email>[]
required

Response

204

The resource has been successfully deleted.