POST
/
testcases
/
bulk-delete
import Scorecard from 'scorecard-ai';

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

const testcase = await client.testcases.delete({ ids: ['123', '124', '125'] });

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

Authorizations

Authorization
string
header
required

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

Body

application/json

Response

200
application/json

Testcases deleted successfully

The response is of type object.