> ## Documentation Index
> Fetch the complete documentation index at: https://gogs.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete the access token

> Deletes the access token that authenticates the request, which stops working right away. Requires an access token, so a tool that only holds the token can revoke it when it is done, without the password.



## OpenAPI

````yaml DELETE /user/token
openapi: 3.0.3
info:
  title: Gogs API
  version: v1
  description: >-
    RESTful API for interacting with your Gogs instance. Follows a format
    similar to the GitHub REST API v3.
servers:
  - url: https://gogs.example.com/api/v1
security:
  - AccessToken: []
tags:
  - name: Repositories
    description: Create, search, and manage repositories, branches, commits, and contents
  - name: Collaborators and Deploy Keys
    description: Manage repository collaborators and deploy keys
  - name: Releases
    description: List repository releases
  - name: Webhooks
    description: Create, edit, and delete repository webhooks
  - name: Issues
    description: Manage issues, comments, labels, and milestones
  - name: Users
    description: Search users, manage access tokens, emails, followers, and public keys
  - name: Organizations
    description: Manage organizations, members, and teams
  - name: Administration
    description: Site administration endpoints (requires admin privileges)
  - name: Miscellaneous
    description: Markdown rendering and Git data endpoints
paths:
  /user/token:
    delete:
      tags:
        - Users
      summary: Delete the access token
      description: >-
        Deletes the access token that authenticates the request, which stops
        working right away. Requires an access token, so a tool that only holds
        the token can revoke it when it is done, without the password.
      operationId: deleteAccessToken
      responses:
        '204':
          description: The resource has been successfully deleted.
        '401':
          description: The request is not authenticated with an access token.
components:
  securitySchemes:
    AccessToken:
      type: apiKey
      in: header
      name: Authorization
      description: 'Personal access token. Use format: token {YOUR_ACCESS_TOKEN}'

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.