Delete comment
Deletes comment by ID
Function DeleteComment(Val Token, Val ObjectID, Val CommentID) Export
Parameter | CLI option | Type | Required | Description |
---|---|---|---|---|
Token | --token | String | ✔ | Token |
ObjectID | --object | String | ✔ | Identifier of the file or directory where the comment is located |
CommentID | --comment | String | ✔ | Comment 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);
- Bash
- CMD/Bat
oint gdrive DeleteComment \
--token "***" \
--object "1Ddwg-hig7v56qRJTDAOO2uTdnDkL4yAB" \
--comment "AAABseO4mgE"
oint gdrive DeleteComment ^
--token "***" ^
--object "1Ddwg-hig7v56qRJTDAOO2uTdnDkL4yAB" ^
--comment "AAABseO4mgE"
Result
{}