SocialFeedManager.DeletePost method

SharePoint Online

Deletes the specified microblog post.

Namespace:  Microsoft.SharePoint.Client.Social
Assembly:  Microsoft.SharePoint.Client.UserProfiles (in Microsoft.SharePoint.Client.UserProfiles.dll)

public ClientResult<SocialThread> DeletePost(
	string postId


Type: System.String

The unique identifier of the post to delete.

Return value

Type: Microsoft.SharePoint.Client.ClientResult<SocialThread>
A digest of the modified thread, or null if the whole thread is deleted.

If the post is a root post, the whole thread is deleted. For a code example that shows how to delete a post, see How to: Create and delete posts and retrieve the social feed by using the .NET client object model in SharePoint 2013.