Remove-GistComment


Synopsis

Remove a Comment from a Gist Object.


Syntax

Remove-GistComment [-Id] <string> [-CommentId] <string> [-WhatIf] [-Confirm]  [<CommonParameters>]

Aliases

None.


Description

Removes a Comment from a Gist Object using the currently authenticated user context.


Parameters

-CommentId <string>
    The Id of the Gist Object Comment.
    
    Required?                    true
    Position?                    Named
    Accept pipeline input?       true (ByPropertyName)
    Parameter set name           (All)
    Aliases                      None
    Dynamic?                     false
    
-Confirm
    
    Required?                    false
    Position?                    Named
    Accept pipeline input?       false
    Parameter set name           (All)
    Aliases                      cf
    Dynamic?                     false
    
-Id <string>
    The Id of the Gist Object.
    
    Required?                    true
    Position?                    Named
    Accept pipeline input?       true (ByPropertyName)
    Parameter set name           (All)
    Aliases                      None
    Dynamic?                     false
    
-WhatIf
    
    Required?                    false
    Position?                    Named
    Accept pipeline input?       false
    Parameter set name           (All)
    Aliases                      wi
    Dynamic?                     false
    
<CommonParameters>
    This cmdlet supports the common parameters: Verbose, Debug,
    ErrorAction, ErrorVariable, WarningAction, WarningVariable,
    OutBuffer, PipelineVariable, and OutVariable. For more information, see 
    about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216). 

Inputs

System.String

  • Represents text as a sequence of UTF-16 code units.

Outputs

System.Void

  • Specifies a return value type for a method that does not return a value.

Notes

There must be an Authenticated User Context to interact with Gist Objects.


Example 1

Removes the first comment from the Gist 93258652fee1551dd0c63fbd5a37c8e0.

PS C:\> Get-GistComment -Id 93258652fee1551dd0c63fbd5a37c8e0 | Select-Object -First 1 | Remove-GistComment
Fork me on GitHub