1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2024-12-21 01:50:24 +02:00
OpenIntegrations/docs/en/md/Google_Drive/File-and-directory-management/Delete-object.md

43 lines
753 B
Markdown
Raw Normal View History

---
sidebar_position: 9
---
# Delete object
Deletes file or directory by ID
*Function DeleteObject(Val Token, Val Identifier) Export*
| Parameter | CLI option | Type | Destination |
|-|-|-|-|
| Token | --token | String | Token |
| Identifier | --object | String | Identifier of the object to delete |
Returns: Map Of KeyAndValue - serialized JSON response from Google
```bsl title="Code example"
Identifier = "1dg_MwwwPSPYT0p3y-8dvGWoapbwaaaaa";
Response = OPI_GoogleDrive.DeleteObject(Token, Identifier); //Map
```
```sh title="CLI command example"
oint gdrive DeleteObject --token %token% --object "1dg_MwwwPSPYT0p3y-8dvGWoapbwaaaaa"
```
```json title="Result"
''
```