Delete blog posts 

To delete a post from a blog, use the HTTP DELETE method.

Deleted blog posts cannot be restored.

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

To delete a blog post...

  1. Retrieve the Blogs service document. See Retrieve the Blogs service document.

  2. In the service document, find the workspace for the blog from which you want to delete the post, and then retrieve the web address of the "weblog Entries" collection in that workspace.

  3. Send a GET request to the weblog Entries collection.

  4. In the returned feed, find the entry and note down the value of the href attribute of its <link rel="edit" type="application/atom+xml" ... > element.

  5. Send a DELETE request to the web address defined in that href attribute.

Table 1. Atom API request details

Method Resource URI Input and output representations
DELETE blog post Value of the href attribute of the <link> element with the rel attribute of edit for each entry in the weblog Entries feed. none





Returned HTTP headers

HTTP/1.1 204 No Content


Parent topic

Work with blog posts

Related reference
Blog posting content