# Remove cPanel API token

This function removes an API token from a cPanel account.

Endpoint: GET /Tokens/revoke
Version: 11.136.0.4
Security: BasicAuth

## Query parameters:

  - `name` (string, required)
    The API token to remove.
    Example: "example"

## Response 200 fields (application/json):

  - `apiversion` (integer)
    The version of the API.
    Example: 3

  - `func` (string)
    The name of the method called.
    Example: "revoke"

  - `module` (string)
    The name of the module called.
    Example: "Tokens"

  - `result` (object)

  - `result.data` (integer)
    Whether the system removed the API token.

* 1 - The system removed the API token or the API token doesn't exist.
* 0 - The system did not remove the API token.

Note:

The system returns the data value in the function's metadata. This differs from our usual API return format. For more information, read our [UAPI Introduction](/cpanel/introduction/) documentation.
    Enum: 0, 1

  - `result.errors` (array,null)
    List of errors if the API failed.

  - `result.messages` (array,null)
    List of messages generated by the API.

  - `result.metadata` (object)

  - `result.status` (integer)
    - 1 - Success
- 0 - Failed: Check the errors field for more details.
    Enum: 0, 1

  - `result.warnings` (array,null)
    List of warnings generated by the API. Warnings describe non-critical failures or other problematic conditions noted while running a API.


