Deletes a reply from a comment. This example deletes reply (id="AAAABg76H9o") from a comment (id="AAAABg7tSGw") on the file (id= "0B5drHSd5ZHwgc3RhcnRlcl9maWxlX2Rhc2hlclYw")
[Reflection.Assembly]::LoadFile("C:\myAssemblies\ChilkatDotNet2.dll")
$rest = New-Object Chilkat.Rest
# Provide a previously obtained OAuth2 access token.
$oauth2 = New-Object Chilkat.OAuth2
$oauth2.AccessToken = "OAUTH2_ACCESS_TOKEN"
$rest.SetAuthOAuth2($oauth2)
$success = $rest.Connect("www.googleapis.com",443,$true,$true)
if ($success -ne $true) {
$($rest.LastErrorText)
exit
}
$sbResponse = New-Object Chilkat.StringBuilder
$success = $rest.FullRequestNoBodySb("DELETE","/drive/v3/files/0B5drHSd5ZHwgc3RhcnRlcl9maWxlX2Rhc2hlclYw/comments/AAAABg7tSGw/replies/AAAABg76H9o",$sbResponse)
if ($success -ne $true) {
$($rest.LastErrorText)
exit
}
if ($rest.ResponseStatusCode -ne 204) {
$("Received error response code: " + $rest.ResponseStatusCode)
$("Response body:")
$($sbResponse.GetAsString())
exit
}
$("Example Completed.")