import SGPClient from 'sgp';
const client = new SGPClient({
apiKey: 'My API Key',
});
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: 'My API Key',
});
const genericDeleteResponse = await client.evaluationDatasets.testCases.delete(
'evaluation_dataset_id',
'test_case_id',
);
console.log(genericDeleteResponse.count);
{
"success": true,
"count": 123
}
Successful Response
The response is of type object
.