Skip to content
Try Gitea Cloud ☁️ for 30 days → Accelerate your Development & Deploys!
This is the documentation of the next version, still under development. See the latest release.

delete an access token

DELETE
/users/{username}/tokens/{token}
curl --request DELETE \
--url https://gitea.com/api/v1/users/example/tokens/example \
--header 'Authorization: Basic <credentials>'
username
required
string

Username of the user whose token is to be deleted

token
required
string

Token to be deleted, identified by ID and if not available by name

APIEmpty is an empty response

APIForbiddenError is a forbidden error response

message
string
url
string

APINotFound is a not found empty response

APIError is error format response

message
string
url
string