Community articleDeleting a stand-alone forum reply programmatically
Added by IBM contributorIBM on March 10, 2014
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

Because replies often have child replies associated with them, when you delete a reply from a forum, the reply is not entirely removed. Instead, if you use the HTTP DELETE command to delete the reply, the reply content is replaced with a standard message that states that the content has been removed. If you want a custom message to be displayed, use the HTTP PUT command instead.



Because replies often have child replies associated with them, when you delete a reply from a forum, the reply is not entirely removed. Instead, if you use the HTTP DELETE command to delete the reply, the reply content is replaced with a standard message that states that the content has been removed. If you want a custom message to be displayed, use the HTTP PUT command instead.

Only the owner of a stand-alone forum can delete a forum reply from it. Deleted replies cannot be restored.

See Authenticating requests for information about how to authenticate the request.

Note: If you want to customize the message that is displayed when the reply is deleted, use a PUT method to delete the reply instead. Be sure to provide the <category scheme="http://www.ibm.com/xmlns/prod/sn/flags term="deleted"> element in the entry content. See Updating a forum reply for more information.

Input
Method URI Description
DELETE /forums/atom/reply Value of the href attribute of <link> element that has a rel="edit" attribute value for each entry in the forum replies feed.
Name Type Optional Description
replyUuid
string No The UUID of the reply you wish to delete.
Output
Code Description
204
Indicates that the forum reply was successfully deleted (and no content is returned).
401
Unauthorized.
404
Not Found.
Examples
DELETE /forums/atom/reply?replyUuid=c8979fef-0be3-4f71-b080-7926aa1c270c HTTP/1.1

Host: www.dulcinea.com

Content-Type: application/atom+xml

Authorization: xxx


Response returned by the server
HTTP/1.1 200 OK