Skip to main content
DELETE
/
metrics
/
{metricId}
JavaScript
import Scorecard from 'scorecard-ai';

const client = new Scorecard({
  apiKey: 'My API Key',
});

const metric = await client.metrics.delete('321');

console.log(metric.success);
{
  "success": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

metricId
string
required

The ID of the Metric to delete.

Example:

"321"

Response

Metric deleted successfully

success
boolean
required

Whether the deletion was successful.