---
title: DeleteSchedule
source: https://docs.newrelic.com/docs/workflow-automation/workflow-automation-apis/delete-schedule
---

Deletes the schedule of a workflow definition. Note, this doesn't stop any currently executing workflow run (use the StopWorkflowRun mutation).

## Input parameters

| Parameter     | Type   | Required | Description                                                                                             |
| ------------- | ------ | -------- | ------------------------------------------------------------------------------------------------------- |
| `accountId`   | Number | Yes      | Your account ID.                                                                                        |
| `schedule.id` | String | Yes      | The unique identifier of the schedule to delete. Obtained from `CreateSchedule` or `GetSchedules` APIs. |

## Sample request

Use the [Query Builder](https://one.newrelic.com/nerdgraph-graphiql?state=fc314f67-101e-a54a-169a-191d1fd41fd) to create and edit a workflow. See [NerdGraph API explorer](https://docs.newrelic.com/docs/apis/nerdgraph/get-started/nerdgraph-explorer).

```graphql
mutation {
  workflowAutomationDeleteSchedule(
    accountId: 11933347
    schedule: {id: "1a71d299-82c2-4b4d-9803-b14523e3a9e7"}
  ) {
    scheduleId
  }
}
```

## Sample response

In case the `schedule.id` is not found, the following structure is returned:

```graphql
{
    "data": {
        "workflowAutomationDeleteSchedule": null
    },
    "errors": [{
        "message": "Could not find schedule with ID MTE2NDk5MDB8TkdFUHxXT1JLRkxPV19TQ0hFRFVMRXwwMTk5MGUzYi04NzAyLTc2M2QtOWUzMy01ZTU1ZThmZTYzYjkl",
        "path": ["workflowAutomationDeleteSchedule"]
    }]
}
```

## Related topics [#related-topics]

[Get schedules](https://docs.newrelic.com/docs/workflow-automation/workflow-automation-apis/get-schedules)

Find the schedule ID before deleting

[Stop workflow run](https://docs.newrelic.com/docs/workflow-automation/workflow-automation-apis/stop-workflow-run)

Stop running workflow instances triggered by this schedule

[Delete workflow definition](https://docs.newrelic.com/docs/workflow-automation/workflow-automation-apis/delete-workflow-definition)

Remove the workflow definition after deleting its schedules
