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

import { buildClient } from "@datocms/cma-client-node";
async function run() {
const client = buildClient({ apiToken: process.env.DATOCMS_API_TOKEN });
const uploadId = "xBe7u01029ipxBLQhYzZCJ1cke01zCkuUsgnYtH0017nNzbpv2YcsoMDmw";
const uploadTrackId =
"xBe7u01029ipxBLQhYzZCJ1cke01zCkuUsgnYtH0017nNzbpv2YcsoMDmw";
const uploadTrack = await client.uploadTracks.destroy(
uploadId,
uploadTrackId,
);
// Check the 'Returned output' tab for the result ☝️
console.log(uploadTrack);
}
run();
{
id: "xBe7u01029ipxBLQhYzZCJ1cke01zCkuUsgnYtH0017nNzbpv2YcsoMDmw",
type: "subtitles",
name: "Italiano",
language_code: "it-IT",
closed_captions: false,
status: "ready",
error: null,
upload: { type: "upload", id: "q0VNpiNQSkG6z0lif_O1zg" },
}