You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-12-01 22:29:52 +02:00
60 lines
1.6 KiB
Plaintext
Vendored
60 lines
1.6 KiB
Plaintext
Vendored
---
|
|
sidebar_position: 9
|
|
description: Delete object and other functions to work with Google Drive in the Open Integration Package, a free open-source integration library for 1C:Enterprise 8, OneScript and CLI
|
|
keywords: [1C, 1С, 1С:Enterprise, 1С:Enterprise 8.3, API, Integration, Services, Exchange, OneScript, CLI, Google Drive]
|
|
---
|
|
|
|
import Tabs from '@theme/Tabs';
|
|
import TabItem from '@theme/TabItem';
|
|
|
|
# Delete object
|
|
Deletes file or directory by ID
|
|
|
|
|
|
|
|
`Function DeleteObject(Val Token, Val Identifier) Export`
|
|
|
|
| Parameter | CLI option | Type | Required | Description |
|
|
|-|-|-|-|-|
|
|
| Token | --token | String | ✔ | Token |
|
|
| Identifier | --object | String | ✔ | Identifier of the object to delete |
|
|
|
|
|
|
Returns: Map Of KeyAndValue - serialized JSON response from Google
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
```bsl title="1C:Enterprise/OneScript code example"
|
|
Token = "ya29.a0ATi6K2tVhkOEu91I_FKDEZ7_olNcPRKrwKbGh7GiFIzwDZjaTNm46ErGj-Lju2am1aAUurgQyVnv0f3G4L7keHSXYNhuCPGvTvzjRdPQJNz_0LzKWjviK54u4...";
|
|
Identifier = "1vuDUwLA8D2NBmWO3jxpcg8kRpUEa3TJ_";
|
|
|
|
Result = OPI_GoogleDrive.DeleteObject(Token, Identifier);
|
|
```
|
|
|
|
|
|
<Tabs>
|
|
|
|
<TabItem value="bash" label="Bash" default>
|
|
```bash
|
|
oint gdrive DeleteObject \
|
|
--token "***" \
|
|
--object "1XkETsk31Gc4KjhZszs7qdI5VALqyRHkD"
|
|
```
|
|
</TabItem>
|
|
|
|
<TabItem value="bat" label="CMD/Bat" default>
|
|
```batch
|
|
oint gdrive DeleteObject ^
|
|
--token "***" ^
|
|
--object "1XkETsk31Gc4KjhZszs7qdI5VALqyRHkD"
|
|
```
|
|
</TabItem>
|
|
</Tabs>
|
|
|
|
|
|
```json title="Result"
|
|
{}
|
|
```
|