import SGPClient from 'sgp';
const client = new SGPClient({
apiKey: 'My API Key',
});
const genericDeleteResponse = await client.evaluationDatasets.autogeneratedDraftTestCases.delete(
'evaluation_dataset_id',
'autogenerated_draft_test_case_id',
);
console.log(genericDeleteResponse.count);
{
"success": true,
"count": 123
}
Delete a specified draft test case. This version will not be retained.
import SGPClient from 'sgp';
const client = new SGPClient({
apiKey: 'My API Key',
});
const genericDeleteResponse = await client.evaluationDatasets.autogeneratedDraftTestCases.delete(
'evaluation_dataset_id',
'autogenerated_draft_test_case_id',
);
console.log(genericDeleteResponse.count);
{
"success": true,
"count": 123
}
Successful Response
The response is of type object
.