# Delete a timeline

Section: Your data › Timelines

```
DELETE https://ba.joexyz.online/api/v1/me/timelines/:id
```

Deletes a timeline.

**Parameters**

- `id` (path): The timeline id.

## Authentication

Bearer Token — `Authorization: Bearer <token>` (inherited from folder "Your data")

## Path parameters

| Name | Value |
| --- | --- |
| `id` |  |

## Example responses

### 204 No Content

No response body.

## Examples

### cURL

```bash
curl -X DELETE https://ba.joexyz.online/api/v1/me/timelines/:id \
  -H 'Authorization: Bearer {{api_key}}'
```

### JavaScript

```javascript
const response = await fetch("https://ba.joexyz.online/api/v1/me/timelines/:id", {
  method: "DELETE",
  headers: {
    "Authorization": "Bearer {{api_key}}",
  },
});

const data = await response.json();
console.log(data);
```

### Python

```python
import requests

url = "https://ba.joexyz.online/api/v1/me/timelines/:id"
headers = {
    "Authorization": "Bearer {{api_key}}",
}

response = requests.delete(url, headers=headers)
print(response.json())
```

### Go

```go
package main

import (
	"fmt"
	"io"
	"net/http"
)

func main() {
	req, err := http.NewRequest("DELETE", "https://ba.joexyz.online/api/v1/me/timelines/:id", nil)
	if err != nil {
		panic(err)
	}
	req.Header.Set("Authorization", "Bearer {{api_key}}")

	res, err := http.DefaultClient.Do(req)
	if err != nil {
		panic(err)
	}
	defer res.Body.Close()

	data, _ := io.ReadAll(res.Body)
	fmt.Println(string(data))
}
```
