Delete a MotherDuck user's access token
delete_md_access_token.RdDeletes a specific access token for a given MotherDuck user using the REST API. This operation requires administrative privileges and a valid API token.
Arguments
- user_name
A character string specifying the MotherDuck user name whose tokens should be listed.
- token_name
Character. The name of the access token to delete.
- motherduck_token
Character. Either the name of an environment variable containing your MotherDuck access token (default
"MOTHERDUCK_TOKEN") or the token itself.
Value
A tibble summarizing the API response, typically including the username and deletion status of the token.
Details
This function calls the MotherDuck REST API endpoint
https://api.motherduck.com/v1/users/{user_name}/tokens/{token_name}
using a DELETE request to remove the specified token.
The authenticated user must have sufficient permissions to perform token management.