Loudvoice API \ Comments \ Delete a comment
|Resource/URI - Discussions||GET||POST||PUT||DELETE|
||List all discussions||Create a discussion||–||–|
||Read a discussion||–||Update a discussion||Delete a discussion|
||Read discussion comments||–||–||–|
|Resource/URI - Authors||GET||POST||PUT||DELETE|
||List all authors||Create an author||–||–|
||Read an author||–||Update an author||Delete an author|
|Resource/URI - Author Sessions||GET||POST||PUT||DELETE|
||–||–||Create/Update a session||–|
||–||–||–||Delete a session|
Request: the code to send to the API
DELETE request to the resource
to immediately delete a comment. The
<comment_token> has to be replaced by the unique token
of an existing comment.
To prevent you from unintentionally deleting an entry by mixing up the DELETE/GET methods you have to include the url parameter confirm_deletion=true when calling the endpoint.
Per default child comments are not deleted but assigned to the parent of the removed comment. To also remove the child comments you need to add the parameter delete_sub_comments=true to the endpoint.
Result: the code returned by the API
The API will either return a HTTP status code
200 if the entry was successfully deleted
or an appropriate message body with further details on the error that occured.