1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-11-29 22:27:42 +02:00
Files
OpenIntegrations/docs/en/md/Dropbox/File-and-directory-management/Delete-object.mdx
Vitaly the Alpaca (bot) a905471e08 Main build (Jenkins)
2025-10-10 09:59:43 +03:00

75 lines
2.6 KiB
Plaintext
Vendored

---
sidebar_position: 7
description: Delete object and other functions to work with Dropbox in the Open Integration Package, a free open-source integration library for 1C:Enterprise 8, OneScript and CLI
keywords: [1C, 1С, 1С:Enterprise, 1С:Enterprise 8.3, API, Integration, Services, Exchange, OneScript, CLI, Dropbox]
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
# Delete object
Deletes an object from the cloud drive
`Function DeleteObject(Val Token, Val Path, Val Irrecoverable = False) Export`
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| Token | --token | String | ✔ | Token |
| Path | --path | String | ✔ | Path to the object to delete |
| Irrecoverable | --permanently | String | ✖ | Delete object without the possibility of recovery |
Returns: Map Of KeyAndValue - serialized JSON response from Dropbox
<br/>
```bsl title="1C:Enterprise/OneScript code example"
Path = "/New/pic.png";
Token = "sl.u.AGCV5bFAEGMHdc0cW0wuRSU8nduEEjAsajtP1ta3Vw4D6k7ivqMiVj2QuaBqy1n9RZhUrftIcKDKh8XtftjcKoA4KBUyY3W5fiUANoMPG6j3Q7Cj--vAoOk9aDWk2ZvsDH_hLA1L5-PlvgA4SyTbNJb8QK3AJh4UX71iKOJUYtb1YDy81VRf4XWiBHyXMoD14rr07VggYfiAIHaMpgJUxkwVSGbiPxD7UlBK8zJC5kwOJqBss7pc5i7Tslne5nt2fno80MmEV_EJoi75M5kpCP2CdLEdChfFLwFNADZq6ox3OGxJ4d8TFI6aZ7Ue1yGJd67Ye2LJ3GnmpkdcKyH1Ovh_sV4slW46OLh1dJQbFdNrgILYXHaoJJrMDJodn6YR8cTWmWQ7IIlw-trIEcIBbPzPtiI3F7xW_5KGD7C3NkmDaCUD4PBnaWI-XplRHQR_RQjMTqW3SWO0sg6RcriVDAKyA6RB8zS6qwfwj23i1RwDM0e2nwrgl6XG9RSKhGYHy1jj2d_YAU9vxw61x2VFF1ILNS7833SYZ5kIDrjjhqUeKD5MoCAz6YxyE0xfSZhRZ4B8ONLeSf6SOOYVSKLi4DxMxurzFC90j0u6KFVsdYiUfeoTXarehRMafAbSnszOJcXQqevbDfsGKtbbHFQUyCaoUkia90jKnIB5W1q2Ksp1QKUcKudSiCPRT7DPRXE1LGK2WsjfmdMJyqbBSb86Yfa0ZJ8i0QT...";
Result = OPI_Dropbox.DeleteObject(Token, Path);
```
<Tabs>
<TabItem value="bash" label="Bash" default>
```bash
oint dropbox DeleteObject \
--token "***" \
--path "/New/url_doc.docx"
```
</TabItem>
<TabItem value="bat" label="CMD/Bat" default>
```batch
oint dropbox DeleteObject ^
--token "***" ^
--path "/New/url_doc.docx"
```
</TabItem>
</Tabs>
```json title="Result"
{
"metadata": {
".tag": "file",
"name": "pic.png",
"path_lower": "/new/pic.png",
"path_display": "/New/pic.png",
"id": "id:kJU6-a-pT48AAAAAAABZwA",
"client_modified": "2025-10-09T21:07:20Z",
"server_modified": "2025-10-09T21:07:49Z",
"rev": "640c0318c8995bd841553",
"size": 2114023,
"is_downloadable": true,
"content_hash": "0f3b18c255b0f252bd326cacc04c15c3aa57bd6b8234adb65aa7bb2987a65492"
}
}
```