There is one method for deleting a blog:
Delete a blog by specified ID:
|
Copy Code |
|
// create new instance of BlogManager Telerik.Blogs.BlogManager blogManager = new Telerik.Blogs.BlogManager(); // get all blogs IList
listOfAllBlogs = blogManager.GetBlogs(); if (listOfAllBlogs.Count > 0)
{
// get the first blog item
Telerik.Blogs.IBlog firstBlog = blogManager.GetBlog(((Telerik.Blogs.IBlog)listOfAllBlogs[0]).ID);
// delete the item from the database
blogManager.DeleteBlog(firstBlog.ID);
}
|
See Also