Deletes the policy attached to an access point.
Usage notes
Alibaba Cloud accounts can delete access point policies by default. RAM users and Security Token Service (STS) callers require 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: This command maps to the DeleteAccessPointPolicy API operation. For details on all parameters, see DeleteAccessPointPolicy. For supported global flags, see Command-line options.Example
Delete the policy attached to access point ap-01 on bucket examplebucket. Replace the bucket name and access point name with your actual values before running the command.
ossutil api delete-access-point-policy --bucket examplebucket --access-point-name ap-01