public static bool AttachmentDelete(Attachment attachment) { Attachment.DeleteAttachment( new AttachmentCriteria { AttachmentId = attachment.AttachmentId }); FeedService.FeedAdd("Deleted", attachment); return(true); }