Delete Comment
curl --request DELETE \
--url https://api.replyke.com/api/v6/:projectId/comments/:commentIdimport requests
url = "https://api.replyke.com/api/v6/:projectId/comments/:commentId"
response = requests.delete(url)
print(response.text)const options = {method: 'DELETE'};
fetch('https://api.replyke.com/api/v6/:projectId/comments/:commentId', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.replyke.com/api/v6/:projectId/comments/:commentId",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.replyke.com/api/v6/:projectId/comments/:commentId"
req, _ := http.NewRequest("DELETE", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.replyke.com/api/v6/:projectId/comments/:commentId")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.replyke.com/api/v6/:projectId/comments/:commentId")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
response = http.request(request)
puts response.read_body{
"status": "<string>"
}Comment Endpoints
Delete Comment
Delete a comment from the project
DELETE
/
:projectId
/
comments
/
:commentId
Delete Comment
curl --request DELETE \
--url https://api.replyke.com/api/v6/:projectId/comments/:commentIdimport requests
url = "https://api.replyke.com/api/v6/:projectId/comments/:commentId"
response = requests.delete(url)
print(response.text)const options = {method: 'DELETE'};
fetch('https://api.replyke.com/api/v6/:projectId/comments/:commentId', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.replyke.com/api/v6/:projectId/comments/:commentId",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.replyke.com/api/v6/:projectId/comments/:commentId"
req, _ := http.NewRequest("DELETE", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.replyke.com/api/v6/:projectId/comments/:commentId")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.replyke.com/api/v6/:projectId/comments/:commentId")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
response = http.request(request)
puts response.read_body{
"status": "<string>"
}Deletes a comment from the project. Only the original author or a master client can delete the comment. Decreases the author’s reputation. Recursively updates all replies to mark their parent as deleted (
parentDeletedAt).
Path Parameters
string
required
The ID of the comment to delete
Response
string
Returns 204 No Content on successful deletion
Error Responses
Missing Comment ID - 400 Bad Request
Missing Comment ID - 400 Bad Request
{
"error": "Missing comment ID",
"code": "comment/missing-comment-id"
}
Not Authorized - 403 Forbidden
Not Authorized - 403 Forbidden
{
"error": "You do not have permission to delete this comment.",
"code": "comment/not-authorized"
}
Not Found - 404 Not Found
Not Found - 404 Not Found
{
"error": "Comment not found",
"code": "comment/not-found"
}
Server Error - 500 Internal Server Error
Server Error - 500 Internal Server Error
{
"error": "Server error",
"code": "comment/server-error",
"details": "[error message]"
}
Notes
- Only the comment’s author or a master client may delete the comment.
- Upon deletion, the comment author’s reputation is reduced.
- All child replies have their
parentDeletedAttimestamp updated recursively. - Replies are not deleted — they are marked as having a deleted parent.

