Back to Content Management API

scheduleDelete

Deletes a schedule.

Arguments

  • Name
    id
    Type
    ID!
    Description

    The ID of the schedule you want to delete.

Returns

Request

import { PackClient } from '@pack/client'
const packClient = new PackClient({
  token: 'YOUR-PACK-TOKEN'
});

const query = `
  mutation scheduleDelete($id: ID!) {
    scheduleDelete(id: $id) {
      success
    }
  }
`;

const variables = {
  id: 'YOUR-SCHEDULE-ID'
};

const response = await packClient.fetch(query, { variables: variables });
console.log(response.data);

Response

{
  "data": {
    "scheduleDelete": {
      "success": true
    }
  }
}

Was this page helpful?