Share via

SocialFeedManager.DeletePost method

Deletes the specified microblog post.

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


Public Function DeletePost ( _
    postId As String _
) As ClientResult(Of SocialThread)
Dim instance As SocialFeedManager
Dim postId As String
Dim returnValue As ClientResult(Of SocialThread)

returnValue = instance.DeletePost(postId)
public ClientResult<SocialThread> DeletePost(
    string postId


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

See also


SocialFeedManager class

SocialFeedManager members

Microsoft.SharePoint.Client.Social namespace