mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-05-17 22:32:45 +02:00
62 lines
1.3 KiB
Plaintext
Vendored
62 lines
1.3 KiB
Plaintext
Vendored
---
|
|
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 = "/7a7f8679-6db2-4c6b-9037-21dcd1c43117.png";
|
|
|
|
Result = OPI_YandexDisk.DeleteObject(Token, Path, False);
|
|
```
|
|
|
|
|
|
<Tabs>
|
|
|
|
<TabItem value="bash" label="Bash" default>
|
|
```bash
|
|
oint yadisk DeleteObject \
|
|
--token "***" \
|
|
--path "/de35e5c3-fa54-4763-a81e-04eee138fd7d.png" \
|
|
--can false
|
|
```
|
|
</TabItem>
|
|
|
|
<TabItem value="bat" label="CMD/Bat" default>
|
|
```batch
|
|
oint yadisk DeleteObject ^
|
|
--token "***" ^
|
|
--path "/de35e5c3-fa54-4763-a81e-04eee138fd7d.png" ^
|
|
--can false
|
|
```
|
|
</TabItem>
|
|
</Tabs>
|
|
|
|
|
|
```json title="Result"
|
|
null
|
|
```
|