Skip to main content
DELETE
/
api
/
public
/
blogPosts
/
{postId}
/
comments
/
{commentId}

Delete Blog Comment

Removes a specific comment from a blog post. Only the comment author or an administrator can delete a comment.

Authentication

Requires a valid customer bearer token. The customer must be the comment author.

Path Parameters

postId
number
required
Numeric identifier of the blog post.
commentId
number
required
Numeric identifier of the comment to delete.

Response

Returns a 200 OK on success.

Examples

Delete a comment

DELETE /api/public/blogPosts/55/comments/103
Authorization: Bearer {token}
HTTP/1.1 200 OK

TypeScript Integration

import endpoints from '@/api/endpoints'

await httpClient.delete(endpoints.blog.deleteComment(55, 103))