Sorry, no results found for "".

Show examples in:
Javascript HTTP
Endpoint info
Available examples

Content Management API > Upload track

Delete an upload track

Returns

Returns a resource object of type upload_track

Examples

1
import { buildClient } from "@datocms/cma-client-node";
2
3
async function run() {
4
const client = buildClient({ apiToken: process.env.DATOCMS_API_TOKEN });
5
6
const uploadId = "xBe7u01029ipxBLQhYzZCJ1cke01zCkuUsgnYtH0017nNzbpv2YcsoMDmw";
7
const uploadTrackId =
8
"xBe7u01029ipxBLQhYzZCJ1cke01zCkuUsgnYtH0017nNzbpv2YcsoMDmw";
9
10
const uploadTrack = await client.uploadTracks.destroy(
11
uploadId,
12
uploadTrackId,
13
);
14
15
// Check the 'Returned output' tab for the result ☝️
16
console.log(uploadTrack);
17
}
18
19
run();
1
{
2
id: "xBe7u01029ipxBLQhYzZCJ1cke01zCkuUsgnYtH0017nNzbpv2YcsoMDmw",
3
type: "subtitles",
4
name: "Italiano",
5
language_code: "it-IT",
6
closed_captions: false,
7
status: "ready",
8
error: null,
9
upload: { type: "upload", id: "q0VNpiNQSkG6z0lif_O1zg" },
10
}