1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2026-05-22 10:05:29 +02:00
Files
OpenIntegrations/docs/en/md/S3/Buckets-managment/Delete-bucket.mdx
T
Vitaly the Alpaca (bot) a6eb894727 Main build (Jenkins)
2024-11-13 09:59:01 +03:00

45 lines
882 B
Plaintext

---
sidebar_position: 2
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
# Delete bucket
Deletes the bucket by name
`Function DeleteBucket(Val Name, Val BasicData) Export`
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| Name | --name | String | ✔ | Bucket name |
| BasicData | --data | String | ✔ | Basic request data. See GetBasicDataStructure |
Returns: Map Of KeyAndValue - serialized JSON response from storage
<br/>
```bsl title="1C:Enterprise/OneScript code example"
URL = "storage-155.s3hoster.by";
AccessKey = "BRN5RKJE67...";
SecretKey = "NNhv+i9PrytpT8Tu0C1N...";
Region = "BTC";
Authorization = OPI_S3.GetAuthStructure(URL, AccessKey, SecretKey, Region);
Name = "newbucket2";
Result = OPI_S3.DeleteBucket(Name, Authorization);
```