Skip to main content

Delete object

Deletes an object at the specified path

Function DeleteObject(Val Token, Val Path, Val ToCart = True) Export

ParameterCLI optionTypeRequiredDescription
Token--tokenStringToken
Path--pathStringPath to the folder or file to be deleted
ToCart--canBooleanTo cart
Returns

Map Of KeyAndValue - serialized JSON response from Yandex

1C:Enterprise/OneScript code example
Token = "y0__xCOranuBRj1uTsgs8z_iRV...";
Path = "/ec98cf96-9738-40a1-b9bc-a24a2f049cb0.png";

Result = OPI_YandexDisk.DeleteObject(Token, Path, False);
oint yadisk DeleteObject \
--token "***" \
--path "/song.mp3" \
--can false
Result
{}