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
1C:Enterprise/OneScript code example
Token = "y0_AgAAAABdylaOAAs0QgAAAAD5i-a...";
Path = "/4ef47102-f34a-4166-83be-d45f3884e20b.png";
Result = OPI_YandexDisk.DeleteObject(Token, Path, False);
- Bash
- CMD/Bat
oint yadisk DeleteObject \
--token "***" \
--path "/10b25db9-2b6e-4954-a036-5b7907e3f355.png" \
--can false
oint yadisk DeleteObject ^
--token "***" ^
--path "/10b25db9-2b6e-4954-a036-5b7907e3f355.png" ^
--can false
Result
null