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.history.delete(
'evaluation_dataset_id',
'test_case_id',
);
console.log(genericDeleteResponse.count);{
"success": true,
"count": 123
}Delete a specified test case and remove all its history from past dataset versions too.
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.history.delete(
'evaluation_dataset_id',
'test_case_id',
);
console.log(genericDeleteResponse.count);{
"success": true,
"count": 123
}