Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
DeletePost method

SocialFeedManager.DeletePost method

SharePoint 2013

Deletes the specified microblog post.

Namespace:  Microsoft.SharePoint.Client.Social
Assemblies:   Microsoft.SharePoint.Client.UserProfiles.Silverlight (in Microsoft.SharePoint.Client.UserProfiles.Silverlight.dll);  Microsoft.SharePoint.Client.UserProfiles.Phone (in Microsoft.SharePoint.Client.UserProfiles.Phone.dll)  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.

© 2015 Microsoft