Memanggil operasi DeleteBucket untuk menghapus bucket.
Deskripsi operasi
-
Hanya akun Alibaba Cloud yang memiliki bucket dapat menghapusnya.
-
Bucket yang berisi objek tidak dapat dihapus. Anda hanya dapat menghapus bucket kosong.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ens:DeleteBucket |
delete |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| BucketName |
string |
Yes |
Nama bucket yang akan dihapus. Hanya satu bucket yang dapat dihapus dalam satu pengatur waktu. |
test |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Skema Tanggapan. |
||
| RequestId |
string |
ID permintaan. |
2180AB96-57CF-1C68-9FEE-D60E547FD79C |
Contoh
Respons sukses
JSONformat
{
"RequestId": "2180AB96-57CF-1C68-9FEE-D60E547FD79C"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidBucketName | Specified parameter BucketName is not valid. | |
| 400 | NoPermission | Permission denied. | |
| 400 | InvalidParameter.%s | The specified field %s invalid. Please check it again. | |
| 500 | InternalError | The request processing has failed due to some unknown error. | |
| 403 | AccessDenied | auth is not valid | |
| 403 | UserDisable | The user has been disabled due to arrears. | |
| 404 | NoSuchBucket | The specified bucket does not exist. | |
| 409 | BucketNotEmpty | The bucket you tried to delete is not empty. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.