DELETE
/
testsets
/
{testsetId}
import Scorecard from 'scorecard-ai';

const client = new Scorecard({
  bearerToken: process.env['SCORECARD_API_KEY'], // This is the default and can be omitted
});

async function main() {
  const testset = await client.testsets.delete('246');

  console.log(testset.success);
}

main();
{
  "success": true
}

Authorizations

Authorization
string
header
required

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

Path Parameters

testsetId
string
required

The ID of the Testset to delete.

Example:

"246"

Response

200
application/json
Testset deleted successfully
success
boolean
required

Whether the deletion was successful.