DeleteObjects #

Overview #

This operation enables you to delete multiple objects from a bucket using a single HTTP request.

AWS API Reference:

Method #


Import Parameters #

The request uses the following import parameters.

  • i_bucket_name (bucket in AWS) (Required)

    Name of the bucket to create.

  • i_region (Required)

    AWS Region of the Amazon S3 Bucket.

  • i_x_amz_bypass_governance_ret (x-amz-bypass-governance-retention in AWS)

    Indicates whether S3 Object Lock should bypass Governance-mode restrictions to process this operation.

  • i_x_amz_expected_b_owner (x-amz-expected-bucket-owner in AWS)

    The account id of the expected bucket owner.

  • i_x_amz_mfa (x-amz-mfa in AWS)

    The concatenation of the authentication device’s serial number, a space, and the value that is displayed on your authentication device.

  • i_x_amz_request_payer (x-amz-request-payer in AWS)

    Confirms that the requester knows that they will be charged for the request.

  • i_t_objects (Required)

    Delete Objects Table

  • i_quiet

    Enable Quiet Mode

Export Parameters #

This method use the following export parameters:

  • e_http_status

    HTTP Status code.

  • e_response_headers

    Returns information about the request in format Name/Value pair values.

  • e_response_content

    Response content in string format.

Example #

DATA: lo_s3               TYPE REF TO /lnkc/cl_sdk_aws_s3,
      lv_http_status      TYPE i,
      lt_response_headers TYPE tihttpnvp,
      lv_response_content TYPE string,
      lt_delete_objects   type /lnkc/aws_s3_t_objectid.

      CREATE OBJECT lo_s3
          i_user_name         = 'user_awsconnector'
          i_access_key        = 'acces_key_value'
          i_secret_access_key = 'secret_acceskey_value'.

        CALL METHOD lo_s3->deleteobjects
            i_bucket_name                   = 'i_bucket_name'
            i_region                        = 'i_region'
*           i_x_amz_bypass_governance_ret   =
*           i_x_amz_expected_b_owner        =
*           i_x_amz_mfa                     =
            i_x_amz_request_payer           = 'i_amz_request_payer'
            i_t_objects                     = lt_delete_objects
*           i_quiet                         =
            e_http_status                   = lv_http_status
            e_response_headers              = lt_response_headers
            e_response_content              = lv_response_content.
      CATCH /lnkc/cx_sdk_aws .
        " Error Message