Skip to main content

Delete object

Deletes an object at the specified path

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

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

Returns: Map Of KeyAndValue - serialized JSON response from Yandex


Code example
    Token = "y0_AgAAAABdylaOAAs0QgAAAAD5i-a...";
Path = "/0eaac754-f8b1-4407-ab2d-80ecf7c73b6b.png";

Result = OPI_YandexDisk.DeleteObject(Token, Path, False);
CLI command example
    
oint yadisk DeleteObject --token "y0_AgAAAABdylaOAA..." --path "/Alpaca.png" --can %can%

Result
<empty string>