All Products
Search
Document Center

Object Storage Service:DeleteTableBucketPolicy

Last Updated:May 08, 2026

Deletes the resource policy of a specified Table Bucket.

Usage notes

  • Deleting the resource policy immediately revokes any cross-account access it granted.

  • If no resource policy is configured for the Table Bucket, this operation does not return an error.

Permissions

API

Action

Description

DeleteTableBucketPolicy

oss:DeleteTableBucketPolicy

Deletes the resource policy of a Table Bucket.

Request syntax

DELETE /buckets/{tableBucketARN}/policy HTTP/1.1
Host: cn-hangzhou.oss-tables.aliyuncs.com
Date: GMT Date
Authorization: SignatureValue

Request parameters

Parameter

Type

Required

Example

Description

tableBucketARN

String

Yes

acs:osstables:cn-hangzhou:1234567890:bucket/my-table-bucket

The URL-encoded ARN of the Table Bucket. Its format is acs:osstables:{region}:{accountId}:bucket/{bucketName}.

Examples

Request example

DELETE /buckets/acs%3Aosstables%3Acn-hangzhou%3A1234567890%3Abucket%2Fmy-table-bucket/policy HTTP/1.1
Host: cn-hangzhou.oss-tables.aliyuncs.com
Date: GMT Date
Authorization: OSS4-HMAC-SHA256 Credential=LTAI********************/20250417/cn-hangzhou/osstables/aliyun_v4_request,Signature=a7c3554c729d71929e0b84489addee6b2e8d5cb48595adfc51868c299c0c****

Response example

HTTP/1.1 204 No Content
Server: AliyunOSS
x-oss-request-id: 5C06A3B67B8B5A3DA422****
x-oss-server-time: 3

SDK

The following SDKs support the DeleteTableBucketPolicy operation:

ossutil command-line tool

For the ossutil command, see delete-table-bucket-policy.

Error codes

Error code

HTTP status code

Description

ForbiddenException

403

The caller does not have the required permissions to perform this operation.

NotFoundException

404

The requested resource does not exist.