Community articleDeleting a blog programmatically
Added by IBM contributorIBM on June 19, 2014
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.



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

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

Input


None.

Output


None.

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.
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.