YouTrack Standalone 7.0 Help

Remove a Comment for an Issue

DELETE /issue/{issue}/comment/{comment}

Remove issue comment

DELETE /rest/issue/{issue}/comment/{comment}?{permanently}

Parameters:

Name Type Description
issue issueById ID of an issue, from which a comment should be deleted.
comment commentByid ID of a comment to delete.
permanently boolean If true, the specified comment will be deleted permanently, that is: deleted comment cannot be restored afterwords. By default, this parameter is set to 'false'

Sample

Request

DELETE http://localhost:8081/rest/issue/HBR-60/comment/42-310?permanently=true Cookie: $Version=0; JSESSIONID=j9wmm40hwk3t1lp8e11l9p0d4; $Path=/; jetbrains.charisma.main.security.PRINCIPAL=MTVhMjY2OGUxMTUxMTI5MGMzNjhlZWM5NTJiNGJkNmIyNzc3NjdjZmM3YWU4MTVjYzQwYWE1MWZlYTkwNTcxNzphcHBfZXhjZXB0aW9u; $Path=/

Response

HTTP/1.1 200 OK Content-Type: application/xml;charset=UTF-8 Content-Length: 0 Server: Jetty(7.2.0.v20101020)
Last modified: 2 February 2017