All Products
Search
Document Center

Object Storage Service:delete-access-point-policy

Last Updated:Sep 21, 2026

The delete-access-point-policy command is used to delete access point policies.

Usage notes

By default, an Alibaba Cloud account has permissions to delete access point policies. Deleting policies as a RAM user or by using Security Token Service (STS) requires the oss:DeleteAccessPointPolicy permission. For more information, see Grant custom policy to RAM users.

Syntax

ossutil api delete-access-point-policy --bucket value --access-point-name value [flags]

Parameter

Type

Description

--bucket

string

Name of the bucket.

--access-point-name

string

Name of the access point.

Note
  • The delete-access-point-policy command corresponds to the DeleteAccessPointPolicy operation. For more information about the parameters within, see DeleteAccessPointPolicy.

  • For more information about supported global command-line options, see Command-line options.

Example

Delete the access point policy configured for the access point named 'ap-01' associated with examplebucket.

ossutil api delete-access-point-policy --bucket examplebucket --access-point-name ap-01