1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-01-20 05:19:32 +02:00
2024-08-14 16:33:34 +03:00

44 lines
888 B
Markdown

---
sidebar_position: 4
---
# Delete object
Deletes an object at the specified path
`Function DeleteObject(Val Token, Val Path, Val ToCart = True) Export`
| Parameter | CLI option | Type | 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="Code example"
Token = "y0_AgAAAABdylaOAAs0QgAAAAD5i-a...";
Path = "/657bb0d1-fc8d-4812-90fe-447ed21bc367.png";
Result = OPI_YandexDisk.DeleteObject(Token, Path, False);
```
```sh title="CLI command example"
oint yadisk DeleteObject --token "y0_AgAAAABdylaOAA..." --path "/Alpaca.png" --can %can%
```
```json title="Result"
<empty string>
```