# Remove a chart comment

Permanently removes a comment from a chart.

[endpoint]
base_url = "https://telemetry.betterstack.com"
path = "/api/v2/dashboards/{dashboard_id}/charts/{chart_id}/comments/{id}"
method = "DELETE"

[[path_param]]
name = "dashboard_id"
description = "The unique identifier of the dashboard."
required = true
type = "integer"

[[path_param]]
name = "chart_id"
description = "The unique identifier of the chart."
required = true
type = "integer"

[[path_param]]
name = "id"
description = "The unique identifier of the comment to remove."
required = true
type = "integer"

[[header]]
name = "Authorization"
description = "Bearer `$TOKEN`"
required = true
type = "string"
[/endpoint]

[responses]
[[response]]
status = 204
description = "The comment was successfully removed. No content is returned."

[[response]]
status = 403
description = "The comment was not created through this API and can only be removed by whoever wrote it."

[[response]]
status = 404
description = "A comment with the specified ID was not found on this chart."
[/responses]

## Example request

```shell
[label cURL]
curl --request DELETE \
     --url "https://telemetry.betterstack.com/api/v2/dashboards/1234/charts/18718/comments/1441" \
     --header "Authorization: Bearer $TOKEN"
```

You can remove a comment created through this API, meaning one whose `api_authored` attribute is `true`. With an OAuth token you can also remove that team member's own comments. Everything else returns `403`, including comments written by other team members and the incident comments synced onto the chart from Uptime.
