1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-02-21 19:49:47 +02:00
Vitaly the Alpaca (bot) bec1c1661a Main build (Jenkins)
2024-10-15 21:15:56 +03:00

42 lines
842 B
Plaintext

---
sidebar_position: 4
---
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 = "/b3327332-137b-454c-be37-06cff128756c.png";
Result = OPI_YandexDisk.DeleteObject(Token, Path, False);
```
```json title="Result"
null
```