Deleting a blog
Added by IBM contributorIBM | Edited by IBM contributorPaul Bastide on December 21, 2015
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

To delete a blog, send an HTTP DELETE request to the existing blog's edit link.

When you delete a blog, it cannot be restored

Example

Input

DELETE /blogs/homepage/api/blogs/0c0fc393-2e36-4d0e-9c9f-d4cfd10bfa70 HTTP/1.1

Authorization: Basic ...

Host: blogs.enterprise.example.com


Response

HTTP/1.1 204 No Content

Content-Language: en-US

Content-Length: 0

 

Input
Method URI Description
DELETE /blogs/{homepage}/api/blogs/{blogId} Value of the href attribute of the <link rel="edit"> element of each entry in the My Blogs feed.
web address returned in the HTTP location header when the blog was created.
Name Type Optional Description
homepage
string No {homepage} represents the blog handle of the blog configured to be the home page of the Blogs application. The handle is defined when the home page blog is created by the administrator.
The handle can be the Community Uuid.
blogId
string No The ID of the blog you wish to update.
Output
Code Description
204
Indicates that the blog was successfully deleted (and no content is returned).
401
Unauthorized.
404
Not Found.