/// <summary> /// Deletes current comment if user is the comments's creator or marks the post as inappropriate /// </summary> /// <returns>Request result</returns> /// <exception cref="LinkedInInvalidOperationException">Thrown when user attempts to delete the comment which is not marked as available for this action</exception> public LinkedInResponse <bool> Delete() { if (!AvailableAction[LinkedInGroupCommentAction.Delete] && !AvailableAction[LinkedInGroupCommentAction.FlagAsInappropriate]) { throw new LinkedInInvalidOperationException("Deletion of current post is not available"); } return(RequestRunner.DeletePostComment(Id)); }