Delete forums programmatically
To delete a forum, use the HTTP DELETE method.Only the owner of a stand-alone forum can delete the forum. Deleted forums cannot be restored.
See Authenticating requests for information about how to authenticate the request.
Table 1. Atom API request details
Method Resource URI Input and output representations DELETE forum
- Web address returned in the HTTP location header when the forum was created.
- Web address in the href attribute of the <link> element with the rel="edit" attribute of a forum Atom entry
none
Input
None.
Output
None.Returned HTTP headers
HTTP/1.1 204 No Content
Indicates that the forum was successfully deleted (and no content is returned).
- HTTP/1.1 401 Unauthorized
- HTTP/1.1 404 Not Found
Request:
DELETE http://www.dulcinea.com/forums/atom/forum?forumUuid=3b153694-e27e-4085-8868-2952110fdad2 HTTP/1.1 Host: www.dulcinea.com Content-Type: application/atom+xml Authorization: xxxResponse:
HTTP/1.1 200 OK
Parent topic
Work with stand-alone forums
});