POST
/
testcases
/
bulk-delete
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 testcase = await client.testcases.delete({ ids: ['123', '124', '125'] });

  console.log(testcase.success);
}

main();
{
  "success": true
}

Authorizations

Authorization
string
header
required

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

Body

application/json
ids
string[]
required

IDs of Testcases to delete.

Response

200
application/json
Testcases deleted successfully
success
boolean
required

Whether the deletion was successful.