his topic describes how to authorize Data Lake Analytics (DLA) to delete Object Storage Service (OSS) files.
Log on to the Resource Access Management console with your DLA account.
In the left-side navigation pane, choose Policies. On the Policies page, click Create Policy. On the Create Custom Policy page, configure the parameters as follows:
Configuration Mode: Select Script.
Policy Document: Copy and paste the following content into the text box. Replace “your-bucket-name” with your OSS bucket name. If you require DLA permissions at a finer granularity, enter the full path of the OSS file that you want to delete.
In the left-side navigation pane, choose RAM Roles. On the RAM Roles page, find the target RAM role AliyunOpenAnalyticsAccessingOSSRole.
Click the role name. On the Permissions tab that appears by default, click Add Permissions.
On the Add Permissions page, select Custom Policy from the drop-down list, locate the policy created in Step 1, grant the policy to the DLA role (AliyunOpenAnalyticsAccessingOSSRole), and click OK.