Back to Content Management API
sectionDeleteBulk
Bulk delete sections.
Arguments
- Name
ids
- Type
- [ID!]
- Description
Array of section IDs that you want to delete.
Returns
- Name
Job
- Type
- Job
- Description
Any requested field from the Job object.
Request
import { PackClient } from '@pack/client'
const packClient = new PackClient({
token: 'YOUR-PACK-TOKEN'
});
const query = `
mutation sectionDeleteBulk($ids: [ID!]!) {
sectionDeleteBulk(ids: $ids) {
id
}
}
`;
const variables = {
ids: ['SECTION_ID']
};
const response = await packClient.fetch(query, { variables: variables });
console.log(response.data);
Response
{
"data": {
"sectionDeleteBulk": {
"id": "1"
}
}
}