Operasi DeleteBucketPolicy menghapus kebijakan akses untuk bucket atau vector bucket tertentu.
Sintaks permintaan
DELETE /?policy
Host: Host
Date: GMT Date
Authorization: SignatureValueHeader permintaan
Semua header dalam permintaan ini merupakan header permintaan umum. Untuk informasi selengkapnya, lihat Header permintaan umum.
Header respons
Semua header dalam respons terhadap permintaan ini merupakan header respons umum. Untuk informasi selengkapnya, lihat Header respons umum.
Contoh
Contoh Bucket
Contoh permintaan
DELETE /?policy Host: oss-example.oss-cn-hangzhou.aliyuncs.com Date: Thu, 17 Apr 2025 12:55:10 GMT Authorization: OSS4-HMAC-SHA256 Credential=LTAI********************/20250417/cn-hangzhou/oss/aliyun_v4_request,Signature=a7c3554c729d71929e0b84489addee6b2e8d5cb48595adfc51868c299c0c218eContoh respons
HTTP/1.1 204 No Content content-length: 0 server: AliyunOSS x-oss-server-time: 31 connection: keep-alive x-oss-request-id: 5C6E9FAF31A13327124B**** date: Thu, 21 Feb 2019 12:55:11 GMT
Contoh bucket vektor
Untuk vector bucket, header Host harus menentukan ID wilayah standar Alibaba Cloud, seperti cn-hangzhou, bukan ID wilayah OSS lama, seperti oss-cn-hangzhou.
Contoh permintaan
DELETE /?policy Host: exampebucket-123***456.cn-hangzhou-internal.oss-vectors.aliyuncs.com Date: Thu, 17 Apr 2025 12:55:10 GMT Authorization: OSS4-HMAC-SHA256 Credential=LTAI********************/20250417/cn-hangzhou/oss/aliyun_v4_request,Signature=a7c3554c729d71929e0b84489addee6b2e8d5cb48595adfc51868c299c0c218eContoh respons
HTTP/1.1 204 No Content content-length: 0 server: AliyunOSS x-oss-server-time: 31 connection: keep-alive x-oss-request-id: 5C6E9FAF31A13327124B**** date: Thu, 21 Feb 2019 12:55:11 GMT
SDK
Anda dapat memanggil operasi ini menggunakan SDK untuk bahasa-bahasa berikut:
antarmuka baris perintah ossutil
Untuk informasi selengkapnya mengenai perintah ossutil untuk operasi ini, lihat delete-bucket-policy.