import SGPClient from 'sgp';
const client = new SGPClient({
apiKey: process.env['SGP_API_KEY'], // This is the default and can be omitted
});
const genericDeleteResponse = await client.evaluationDatasets.testCases.delete(
'evaluation_dataset_id',
'test_case_id',
);
console.log(genericDeleteResponse.count);{
"success": true,
"count": 123
}Delete a specified test case — retaining older version belonging to older dataset versions.
This request shouldn’t be used when deleting due to compliance reasons. See Wipe action.
import SGPClient from 'sgp';
const client = new SGPClient({
apiKey: process.env['SGP_API_KEY'], // This is the default and can be omitted
});
const genericDeleteResponse = await client.evaluationDatasets.testCases.delete(
'evaluation_dataset_id',
'test_case_id',
);
console.log(genericDeleteResponse.count);{
"success": true,
"count": 123
}