Skip to content

/AWS1/CL_STG=>DELETEFILESHARE()

About DeleteFileShare

Deletes a file share from an S3 File Gateway. This operation is only supported for S3 File Gateways.

Method Signature

IMPORTING

Required arguments:

iv_filesharearn TYPE /AWS1/STGFILESHAREARN /AWS1/STGFILESHAREARN

The Amazon Resource Name (ARN) of the file share to be deleted.

Optional arguments:

iv_forcedelete TYPE /AWS1/STGBOOLEAN2 /AWS1/STGBOOLEAN2

If this value is set to true, the operation deletes a file share immediately and aborts all data uploads to Amazon Web Services. Otherwise, the file share is not deleted until all data is uploaded to Amazon Web Services. This process aborts the data upload process, and the file share enters the FORCE_DELETING status.

Valid Values: true | false

RETURNING

oo_output TYPE REF TO /aws1/cl_stgdeletefileshareout /AWS1/CL_STGDELETEFILESHAREOUT

Domain /AWS1/RT_ACCOUNT_ID
Primitive Type NUMC

Examples

Syntax Example

This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.

DATA(lo_result) = lo_client->/aws1/if_stg~deletefileshare(
  iv_filesharearn = |string|
  iv_forcedelete = ABAP_TRUE
).

This is an example of reading all possible response values

lv_filesharearn = lo_result->get_filesharearn( ).