1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-12-07 23:03:08 +02:00
Files
OpenIntegrations/docs/en/md/Yandex_Disk/File-and-folder-management/Delete-object.mdx
Vitaly the Alpaca (bot) 60ddd5e71e Main build (Jenkins)
2025-05-21 10:35:46 +03:00

64 lines
1.6 KiB
Plaintext
Vendored

---
sidebar_position: 4
description: Delete object and other functions to work with Yandex Disk 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, Yandex Disk]
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
# Delete object
Deletes an object at the specified path
`Function DeleteObject(Val Token, Val Path, Val ToCart = True) Export`
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| Token | --token | String | ✔ | Token |
| Path | --path | String | ✔ | Path to the folder or file to be deleted |
| ToCart | --can | Boolean | ✖ | To cart |
Returns: Map Of KeyAndValue - serialized JSON response from Yandex
<br/>
```bsl title="1C:Enterprise/OneScript code example"
Token = "y0_AgAAAABdylaOAAs0QgAAAAD5i-a...";
Path = "/74281cd6-b81c-412a-8ae1-d9a101c7733c.png";
Result = OPI_YandexDisk.DeleteObject(Token, Path, False);
```
<Tabs>
<TabItem value="bash" label="Bash" default>
```bash
oint yadisk DeleteObject \
--token "***" \
--path "/2baf0f76-3628-4421-a35a-19160b97608f.png" \
--can false
```
</TabItem>
<TabItem value="bat" label="CMD/Bat" default>
```batch
oint yadisk DeleteObject ^
--token "***" ^
--path "/2baf0f76-3628-4421-a35a-19160b97608f.png" ^
--can false
```
</TabItem>
</Tabs>
```json title="Result"
null
```