1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2024-12-16 11:38:11 +02:00
OpenIntegrations/docs/en/md/Yandex_Disk/File-and-folder-management/Delete-object.md
2024-09-10 13:48:11 +03:00

888 B

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


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

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

<empty string>