Skip to main content

Delete comment

Deletes comment by ID

Function DeleteComment(Val Token, Val ObjectID, Val CommentID) Export

ParameterCLI optionTypeRequiredDescription
Token--tokenStringToken
ObjectID--objectStringIdentifier of the file or directory where the comment is located
CommentID--commentStringComment identifier

Returns: Map Of KeyAndValue - serialized JSON response from Google


1C:Enterprise/OneScript code example
    Token      = "ya29.a0AQQ_BDQ_0g6De1s1jLOYbrGQ43QDri_VRPre92E-_aUXJNk52_zY1j3A74665Q7FVMzsgnjqjKN14ljBwB0PlswTyjZlgxcBIDMnuqIbFLhH8Hcxc5NfKIOpS...";
Identifier = "1gWSd3xX7y9I7s3wCP7avbkrUEK5VueKR";
CommentID = "AAABsbSom3U";

Result = OPI_GoogleDrive.DeleteComment(Token, Identifier, CommentID);
    oint gdrive DeleteComment \
--token "***" \
--object "1Ddwg-hig7v56qRJTDAOO2uTdnDkL4yAB" \
--comment "AAABseO4mgE"
Result
{}