---
title: "Delete a discussion comment (Legacy)"
method: DELETE
path: "/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}"
tags: ["teams"]
deprecated: true
---

# Delete a discussion comment (Legacy)

`DELETE /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}`

> **Deprecated.**

**Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Delete a discussion comment](https://docs.github.com/enterprise-server@3.8/rest/teams/discussion-comments#delete-a-discussion-comment) endpoint.

Deletes a comment on a team discussion.

OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.

## Path parameters

- `team_id` integer, required
- `discussion_number` integer, required
- `comment_number` integer, required

## Response `204`

Response

---

[API](https://skmtc.net/github/apis/ghes.md) · [All operations](https://skmtc.net/github/apis/ghes/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/ghes/revisions/5438365412fe/schema)
