Skip to content
Get started

Delete

client.projects.apiKeys.delete(stringkeyID, APIKeyDeleteParams { projectId } params, RequestOptionsoptions?): APIKeyDeleteResponse
DELETE/projects/{projectId}/api-keys/{keyId}

Delete a particular api key

ParametersExpand Collapse
keyID: string
params: APIKeyDeleteParams { projectId }
projectId: string

The project Id on which the api key exists

ReturnsExpand Collapse
APIKeyDeleteResponse = unknown

Delete

import Scenario from '@scenario-labs/sdk';

const client = new Scenario({
  apiKey: process.env['SCENARIO_SDK_API_KEY'], // This is the default and can be omitted
  apiSecret: process.env['SCENARIO_SDK_API_SECRET'], // This is the default and can be omitted
});

const apiKey = await client.projects.apiKeys.delete('keyId', { projectId: 'projectId' });

console.log(apiKey);
{}
Returns Examples
{}