> For the complete documentation index, see [llms.txt](https://support.incidents.cloud.solarwinds.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.incidents.cloud.solarwinds.com/terraform-and-api-documentation/getting-started-with-squadcast-graphql/schedules/delete-schedule.md).

# Delete Schedule

{% hint style="info" %}
If you attempt to delete a schedule that is mentioned in any escalation policies, you will receive an error. You need to replace the schedule with another schedule/user/squad. Please follow the example below to achieve this.
{% endhint %}

```
mutation{
  deleteSchedule(
  ID:001,
  input:[
    {
      escalationPolicyID:"6459bfd03921290fba093f98",
      scheduleIDs:[9054,9053],
      userIDs:[],
      squadIDs:[]
    }
  ]){
    schedule{
      ID,
      name,
      escalationPolicies{
        name,
        ID
      }
    }
    conflictingEscalationPolicies{
      name
    }
  }
}
```

**Response:**

```
{
  "data": {
    "deleteSchedule": {
      "schedule": {
        "ID": 001,
        "name": "Product Schedule1",
        "escalationPolicies": []
      },
      "conflictingEscalationPolicies": []
    }
  }
}
```
