1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-11-27 22:18:36 +02:00
Files
OpenIntegrations/docs/en/md/GoogleDrive/File-and-directory-management/Delete-object.mdx
Vitaly the Alpaca (bot) cdef2d02ab Main build (Jenkins)
2025-10-21 21:43:05 +03:00

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.a0AQQ_BDTEToh-GItDaON1RKItxn8oyyucs96C7wzRz-nN6Qcr3d7C5ogtN18HBpUDAewZxDbcc3jAtrj2aIO0zuU4KLYSMRkyFoLt8ZuczyuBGNtxdl-3opaY1...";
Identifier = "18f-BmHuzsbxOsUTPybKyaFn_ImQSYxDC";
Result = OPI_GoogleDrive.DeleteObject(Token, Identifier);
```
<Tabs>
<TabItem value="bash" label="Bash" default>
```bash
oint gdrive DeleteObject \
--token "***" \
--object "1Ddwg-hig7v56qRJTDAOO2uTdnDkL4yAB"
```
</TabItem>
<TabItem value="bat" label="CMD/Bat" default>
```batch
oint gdrive DeleteObject ^
--token "***" ^
--object "1Ddwg-hig7v56qRJTDAOO2uTdnDkL4yAB"
```
</TabItem>
</Tabs>
```json title="Result"
{}
```