1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-03-05 15:15:50 +02:00

44 lines
888 B
Markdown
Raw Normal View History

---
sidebar_position: 4
---
# Delete object
Deletes an object at the specified path
2024-07-10 13:58:29 +03:00
`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
2024-07-10 14:05:58 +03:00
<br/>
2024-07-10 13:58:29 +03:00
```bsl title="Code example"
Token = "y0_AgAAAABdylaOAAs0QgAAAAD5i-a...";
2024-08-20 13:11:21 +03:00
Path = "/ef1c7053-d969-4d1d-9101-52190c3b3a39.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"
2024-08-14 09:06:31 +03:00
<empty string>
```