Skip to content

Delete Blog Comment

DELETE
/api/v1/posts/{id}/comments/{commentId}

Authorizations

SessionAuth

Session ID for authenticated requests

Type
API Key (header: X-Session-ID)

Parameters

Path Parameters

id*
Type
string
Required
commentId*
Type
string
Required

Responses

Comment deleted

Playground

Server
Authorization
Variables
Key
Value

Samples

Powered by VitePress OpenAPI

Delete a blog comment.

Auth: session.

Parameters

NameInTypeRequiredDescription
idpathstringYesPost id
commentIdpathstringYesComment id

Request Body

None.

Response 200

json
{
	"data": { "id": "com_2", "deleted": true },
	"user_context": { "authenticated": true },
	"meta": {}
}

Response Errors

  • 401 missing session
  • 403 not allowed
  • 404 comment not found

Notes

  • Supports author deletion and moderation cleanup.
  • Use this instead of hard deleting unrelated records.