Show examples in:
Delete an upload

Returns

Returns a upload resource object.

Examples

Example Basic example
import { buildClient } from '@datocms/cma-client-node';
async function run() {
const client = buildClient({ apiToken: '<YOUR_API_TOKEN>' });
const uploadId = 'q0VNpiNQSkG6z0lif_O1zg';
const upload = await client.uploads.destroy(uploadId);
console.log(upload);
}
run();