Skip to content

/AWS1/IF_ART=>DELETEDOMAIN()

About DeleteDomain

Deletes a domain. You cannot delete a domain that contains repositories. If you want to delete a domain with repositories, first delete its repositories.

Method Signature

IMPORTING

Required arguments:

iv_domain TYPE /AWS1/ARTDOMAINNAME /AWS1/ARTDOMAINNAME

The name of the domain to delete.

Optional arguments:

iv_domainowner TYPE /AWS1/ARTACCOUNTID /AWS1/ARTACCOUNTID

The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces.

RETURNING

oo_output TYPE REF TO /aws1/cl_artdeletedomainresult /AWS1/CL_ARTDELETEDOMAINRESULT

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_art~deletedomain(
  iv_domain = |string|
  iv_domainowner = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lo_domaindescription = lo_result->get_domain( ).
  IF lo_domaindescription IS NOT INITIAL.
    lv_domainname = lo_domaindescription->get_name( ).
    lv_accountid = lo_domaindescription->get_owner( ).
    lv_arn = lo_domaindescription->get_arn( ).
    lv_domainstatus = lo_domaindescription->get_status( ).
    lv_timestamp = lo_domaindescription->get_createdtime( ).
    lv_arn = lo_domaindescription->get_encryptionkey( ).
    lv_integer = lo_domaindescription->get_repositorycount( ).
    lv_long = lo_domaindescription->get_assetsizebytes( ).
    lv_arn = lo_domaindescription->get_s3bucketarn( ).
  ENDIF.
ENDIF.