Skip to content
developers
Open TestCollab

Delete test dataset

DELETE/testdatasets/{id}

Deletes a specific test dataset

Use resource IDs from your own project. Keep the API token in your server or CI environment.

example.ts
import { createConfiguration, TestDatasetsApi } from '@testcollab/sdk';
const config = createConfiguration(process.env.TESTCOLLAB_TOKEN!);
const api = new TestDatasetsApi(config);
const result = await api.deleteTestDataset({
"id": 123,
"project": 123
});
console.log(result);
Name Location Type Required Description
id path number Yes Test dataset ID
project query number Yes Project ID

200 — Test dataset deleted

Illustrative response
{}
Status Meaning
403 Forbidden
422 The dataset was not deleted. : among other reasons, when it is owned by a BDD sync (is_bdd_managed), which only tc sync deletes, or when a test case uses it.