---
type: api
title: Delete Timelines or Timeline templates
description: Delete one or more Timelines or Timeline templates.
url: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/kibana/v0/operation/operation-deletetimelines
resource: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/kibana/v0/operation/operation-deletetimelines
products:
  - Kibana
---

# Delete Timelines or Timeline templates

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

## Paths

- `DELETE` `/api/timeline`

## Description

Delete one or more Timelines or Timeline templates.

## Authentication

- Api key: `Authorization: <value>`
  These APIs use key-based authentication. You must create an API key and use the encoded value in the request header. For example: `Authorization: ApiKey base64AccessApiKey`
- Basic: `Authorization: Basic <credentials>`

## 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

```json
{}
```

