---
type: api
title: Delete Timelines or Timeline templates
description: **Spaces method and path for this operation:**
url: https://www.elastic.co/elastic/docs-builder/docs/4641/api/doc/kibana/operation/operation-deletetimelines
resource: https://www.elastic.co/elastic/docs-builder/docs/4641/api/doc/kibana/operation/operation-deletetimelines
products:
  - Kibana
---

# Delete Timelines or Timeline templates

Authentication: required

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

## Paths

- `DELETE` `/api/timeline`
- `DELETE` `/s/{space_id}/api/timeline`

#### Path parameters

- `space_id` (string) — optional
  An identifier for the space. If `space_id` is not provided in the URL, the default space is used. Refer to [Spaces](https://www.elastic.co/docs/deploy-manage/manage-spaces) for more information.

## Description

Delete one or more Timelines or Timeline templates.

## Request body

The IDs of the Timelines or Timeline templates to delete.

`application/json`

- `savedObjectIds` (string[] · max items: 100) — required
  The list of IDs of the Timelines or Timeline templates to delete
- `searchIds` (string[] · max items: 100) — optional
  Saved search IDs that should be deleted alongside the timelines

## Response

Indicates a successful call.

`application/json`

Type: `object`

## Code examples

#### Console

```console
DELETE kbn:/api/timeline
{
  "savedObjectIds": [
    "15c1929b-0af7-42bd-85a8-56e234cc7c4e"
  ]
}
```

#### curl

```curl
curl -X DELETE "${KIBANA_URL}/api/timeline" \
  -H "Authorization: ApiKey ${API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{
    "savedObjectIds": [
      "15c1929b-0af7-42bd-85a8-56e234cc7c4e"
    ]
  }'
```

## Response examples

#### Success

`application/json`

```json
{}
```

