1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-05-29 23:17:45 +02:00

38 lines
762 B
Markdown
Raw Normal View History

---
sidebar_position: 9
---
# Delete object
Deletes file or directory by ID
2024-07-10 13:58:29 +03:00
`Function DeleteObject(Val Token, Val Identifier) Export`
| Parameter | CLI option | Type | Description |
|-|-|-|-|
| Token | --token | String | Token |
| Identifier | --object | String | Identifier of the object to delete |
Returns: Map Of KeyAndValue - serialized JSON response from Google
2024-07-10 14:05:58 +03:00
<br/>
2024-07-10 13:58:29 +03:00
```bsl title="Code example"
2024-10-15 10:07:27 +03:00
Token = "ya29.a0AcM612zdAe2M8Ywdxt7xmK1VAAj2m3yjTdP1Ap8cFmqbE8lVngjIAujPtjc_c94MCuKNLfn7MSssBd6NfMXDQDrHMUv7Fgjp7cjuXk68n...";
Identifier = "14hysfOxsStktI4JZEXRiSZ9Rl69wNJwX";
2024-09-28 19:38:00 +03:00
Result = OPI_GoogleDrive.DeleteObject(Token, Identifier);
```
2024-10-15 09:53:37 +03:00
```json title="Result"
2024-09-29 21:40:58 +03:00
null
```