Sorry, no results found for "".

Show examples in:
Javascript HTTP
Endpoint info
Available examples

Content Management API > Uploads filter

Delete a filter

Returns

Returns a resource object of type upload_filter

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 uploadFilterId = "-Lo34LFSTLmgPToamzJLcg";
7
8
const uploadFilter = await client.uploadFilters.destroy(uploadFilterId);
9
10
// Check the 'Returned output' tab for the result ☝️
11
console.log(uploadFilter);
12
}
13
14
run();
1
{
2
id: "-Lo34LFSTLmgPToamzJLcg",
3
name: "Draft posts",
4
filter: { status: { eq: "draft" } },
5
shared: true,
6
}