---
type: api
title: Delete a backfill by ID
description: **Spaces method and path for this operation:**
url: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/kibana-serverless/operation/operation-delete-alerting-rules-backfill-id
resource: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/kibana-serverless/operation/operation-delete-alerting-rules-backfill-id
products:
  - Kibana
---

# Delete a backfill by ID

- Server: `https://{kibana_url}`

## Paths

- `DELETE` `/api/alerting/rules/backfill/{id}`
- `DELETE` `/s/{space_id}/api/alerting/rules/backfill/{id}`

- [Api key auth](/elastic/docs-builder/docs/4371/api/doc/kibana-serverless/authentication#apikeyauth)

#### Path Parameters

- `id` (string)
  The identifier for the backfill.

## Description

Refer to [Spaces](https://www.elastic.co/docs/deploy-manage/manage-spaces) for more information.

## Responses

#### `204`

Indicates a successful call.

#### `400`

Indicates an invalid schema or parameters.

#### `403`

Indicates that this call is forbidden.

#### `404`

Indicates a backfill with the given ID does not exist.

## Code Examples

#### Console

```console
DELETE /api/alerting/rules/backfill/{id}
```

#### curl

```curl
curl -X DELETE "https://{kibana_url}/api/alerting/rules/backfill/{id}" \
  -H "kbn-xsrf: true"
```

