# Remove Schedule Data

`DELETE /manage/schedules`

Remove stored schedule data for the given time window and schedule type(s). Intervals extending beyond the window are trimmed; intervals entirely within are dropped.

## Parameters

### Query Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `resource_id` | string | yes | The resource id. |
| `period_end` | string (date-time) | yes | End of the delete window (ISO 8601). Must be on a 5-minute boundary. |
| `period_start` | string (date-time) | yes | Start of the delete window (ISO 8601). Must be on a 5-minute boundary. |
| `schedule_type` | string | yes | Comma-separated list of schedule types to delete: availability, curtailment |

## Example request

### cURL

```bash
curl -X DELETE "https://api.solcast.com.au/manage/schedules?resource_id=cbf6-a872-1cb2-566f&period_start=2026-01-01T00:00:00.0000000Z&period_end=2026-01-02T00:00:00.0000000Z&schedule_type=<schedule_type>" \
  -H "Authorization: Bearer $API_KEY"
```

### Python

```python
import requests

params = {
    "resource_id": "cbf6-a872-1cb2-566f",
    "period_start": "2026-01-01T00:00:00.0000000Z",
    "period_end": "2026-01-02T00:00:00.0000000Z",
    "schedule_type": "<schedule_type>",
}

response = requests.delete(
    "https://api.solcast.com.au/manage/schedules", params=params,
    headers={"Authorization": "Bearer API_KEY"},
)
data = response.json()
```

## Example response (200)

```json
{
  "response_status": {
    "error_code": "string",
    "message": "string",
    "stack_trace": "string",
    "errors": [
      {
        "error_code": null,
        "field_name": null,
        "message": null,
        "meta": null
      }
    ],
    "meta": {}
  }
}
```

## Responses

### 200 — OK

Schema: `DeleteResourceScheduleResponse`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `response_status` | string | no |  |

Source: /docs/section/premium#deleteManageSchedules
