# Remove an on-call schedule rotation

Remove an on-call rotation for a single schedule. This also removes all on-call events generated for this on-call rotation that end after 0:00 UTC today.

[endpoint]
base_url = "https://uptime.betterstack.com"
path = "/api/v2/on-calls/{schedule_id}/rotation"
method = "DELETE"

[[path_param]]
name = "schedule_id"
description = "The ID of the on-call schedule you want to get events for. Use `default` to refer to the default on-call schedule for the team."
required = true
type = "string"

[[header]]
name = "Authorization"
description = "Bearer `$TOKEN`"
required = true
type = "string"

[[body_param]]
name = "team_name"
description = "Required if using [global API token](https://betterstack.com/docs/uptime/api/getting-started-with-uptime-api/#get-a-global-api-token) to specify the team which should own the resource."
type = "string"
[/endpoint]

[responses]
[[response]]
status = 204
description = '''Rotation and associated events were deleted'''

[/responses]


#### Example cURL 

```shell
[label Example]
curl --request DELETE \
  --url "https://uptime.betterstack.com/api/v2/on-calls/default/rotation" \
  --header "Authorization: Bearer $TOKEN"
```
