Skip to content
developers
Open TestCollab

Delete an upload

DELETE/upload/files/{id}

Deletes a specific uploaded file

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

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

200 — Upload deleted

Illustrative response
{}
Status Meaning
403 Forbidden