Unpublish object
Unpublishes a previously published object
- Parameters
- Advanced call ?
Function CancelObjectPublication(Val Token, Val Path) Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| Token | --token | String | ✔ | Token |
| Path | --path | String | ✔ | Path to the previously published object |
Returns
Map Of KeyAndValue - serialized JSON response from Yandex
| Parameter | Description |
|---|---|
| proxy | InternetProxy or a structure with fields Protocol, Host, Port, User, Password, UseOSAuthentication |
| timeout | Request execution timeout |
| adv_response | Formats the response as a complete HTTP structure with fields code, body, and headers |
| retries | Number of HTTP request send attempts on 5** status codes or internal client errors |
| dontwait | Creates a background job and returns its data (for 1C and OneScript only) |
1C:Enterprise/OneScript code example
Token = "y0__xCOranuBRj1uTsgs8z_iRV...";
Path = "/5bb78325-64e6-4133-a369-c3a275f745cb.png";
Result = OPI_YandexDisk.CancelObjectPublication(Token, Path);
- Bash
- CMD/Bat
oint yadisk CancelObjectPublication \
--token "***" \
--path "/498b564d-db83-4012-a4cb-8d01041d8eb2.png"
oint yadisk CancelObjectPublication ^
--token "***" ^
--path "/498b564d-db83-4012-a4cb-8d01041d8eb2.png"
Result
{
"path": "disk:/498b564d-db83-4012-a4cb-8d01041d8eb2.png",
"type": "file",
"name": "498b564d-db83-4012-a4cb-8d01041d8eb2.png",
"created": "2026-05-26T14:01:21+00:00",
"modified": "2026-05-26T14:01:21+00:00",
"size": 2114023,
"mime_type": "multipart",
"md5": "9e0176f87f6565a22f78e0f9b39a4d78",
"sha256": "89f8eb42a35208a17c85036e17237b0aa0657e1841efa6171dc5acbc0dea9e18",
"media_type": "image",
"resource_id": "1573541518:f1d29359d2fb94dbae81176d67c316ad2889ae9e610577a892603caa55b9a686",
"revision": 1779804111797234,
"comment_ids": {
"public_resource": "1573541518:f1d29359d2fb94dbae81176d67c316ad2889ae9e610577a892603caa55b9a686",
"private_resource": "1573541518:f1d29359d2fb94dbae81176d67c316ad2889ae9e610577a892603caa55b9a686"
},
"exif": {},
"antivirus_status": "clean",
"file": "https://downloader.disk.yandex.ru/disk/74bee55719c4de46538dd676c6b1a6da267ed99085116ef21caca4a54a77c..."
}