cURL
curl --request DELETE \ --url https://api.planetscale.com/v1/organizations/{organization}/service-tokens/{id} \ --header 'Authorization: Bearer <token>'
Delete a service token from the organization.
A service token must have at least one of the following access in order to use this API endpoint:
Service Token Accesses delete_service_tokens
delete_service_tokens
The access token received from the authorization server in the OAuth 2.0 flow.
The name of the organization
The ID of the service token
Service token deleted successfully
Was this page helpful?