Are you sure you want to delete this access key?
title | intro | redirect_from | versions | topics |
---|---|---|---|---|
Managing disruptive comments | You can {% if currentVersion == "free-pro-team@latest" %}hide, edit,{% else %}edit{% endif %} or delete comments on issues, pull requests, and commits. | [/articles/editing-a-comment/ /articles/deleting-a-comment/ /articles/managing-disruptive-comments /github/building-a-strong-community/managing-disruptive-comments] | [{free-pro-team *} {enterprise-server *} {github-ae *}] | [Community] |
Anyone with write access to a repository can hide comments on issues, pull requests, and commits.
If a comment is off-topic, outdated, or resolved, you may want to hide a comment to keep a discussion focused or make a pull request easier to navigate and review. Hidden comments are minimized but people with read access to the repository can expand them.
Anyone with write access to a repository can unhide comments on issues, pull requests, and commits.
Anyone with write access to a repository can edit comments on issues, pull requests, and commits.
It's appropriate to edit a comment and remove content that doesn't contribute to the conversation and violates your community's code of conduct{% if currentVersion == "free-pro-team@latest" %} or GitHub's Community Guidelines{% endif %}.
When you edit a comment, note the location that the content was removed from and optionally, the reason for removing it.
Anyone with read access to a repository can view a comment's edit history. The edited dropdown at the top of the comment contains a history of edits showing the user and timestamp for each edit.
Comment authors and anyone with write access to a repository can also delete sensitive information from a comment's edit history. For more information, see "Tracking changes in a comment."
[REDACTED]
to replace it.
Anyone with write access to a repository can delete comments on issues, pull requests, and commits. Organization owners, team maintainers, and the comment author can also delete a comment on a team page.
Deleting a comment is your last resort as a moderator. It's appropriate to delete a comment if the entire comment adds no constructive content to a conversation and violates your community's code of conduct{% if currentVersion == "free-pro-team@latest" %} or GitHub's Community Guidelines{% endif %}.
Deleting a comment creates a timeline event that is visible to anyone with read access to the repository. However, the username of the person who deleted the comment is only visible to people with write access to the repository. For anyone without write access, the timeline event is anonymized.
If a comment contains some constructive content that adds to the conversation in the issue or pull request, you can edit the comment instead.
{% note %}
Note: The initial comment (or body) of an issue or pull request can't be deleted. Instead, you can edit issue and pull request bodies to remove unwanted content.
{% endnote %}
Press p or to see the previous file or, n or to see the next file
Are you sure you want to delete this access key?
Are you sure you want to delete this access key?
Are you sure you want to delete this access key?
Are you sure you want to delete this access key?