2024-06-05 12:19:46 +02:00
|
|
|
---
|
|
|
|
sidebar_position: 4
|
|
|
|
---
|
|
|
|
|
|
|
|
# Delete comment
|
|
|
|
Deletes comment by ID
|
|
|
|
|
|
|
|
|
|
|
|
*Function DeleteComment(Val Token, Val ObjectID, Val CommentID) Export*
|
|
|
|
|
|
|
|
| Parameter | CLI option | Type | Destination |
|
|
|
|
|-|-|-|-|
|
|
|
|
| Token | --token | String | Token |
|
|
|
|
| ObjectID | --object | String | Identifier of the file or directory where the comment is located |
|
|
|
|
| CommentID | --comment | String | Comment identifier |
|
|
|
|
|
|
|
|
|
|
|
|
Returns: Key-Value Pair - serialized JSON response from Google
|
|
|
|
|
|
|
|
```bsl title="Code example"
|
|
|
|
|
|
|
|
|
|
|
|
Identifier = "1dg_MwwwPSPYT0p3y-8dvGWoapbwaaaaa";
|
|
|
|
|
|
|
|
Response = OPI_GoogleDrive.DeleteComment(Token, Identifier, Comment); //Map
|
|
|
|
|
2024-06-05 12:35:05 +02:00
|
|
|
|
2024-06-05 12:19:46 +02:00
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
```sh title="CLI command example"
|
|
|
|
|
|
|
|
oint gdrive DeleteComment --token %token% --object %object% --comment %comment%
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
```json title="Result"
|
|
|
|
|
|
|
|
''
|
|
|
|
|
|
|
|
```
|