Skip to content

/AWS1/IF_KYS=>DELETETABLE()

About DeleteTable

The DeleteTable operation deletes a table and all of its data. After a DeleteTable request is received, the specified table is in the DELETING state until Amazon Keyspaces completes the deletion. If the table is in the ACTIVE state, you can delete it. If a table is either in the CREATING or UPDATING states, then Amazon Keyspaces returns a ResourceInUseException. If the specified table does not exist, Amazon Keyspaces returns a ResourceNotFoundException. If the table is already in the DELETING state, no error is returned.

Method Signature

METHODS /AWS1/IF_KYS~DELETETABLE
  IMPORTING
    !IV_KEYSPACENAME TYPE /AWS1/KYSKEYSPACENAME OPTIONAL
    !IV_TABLENAME TYPE /AWS1/KYSTABLENAME OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_kysdeletetablersp
  RAISING
    /AWS1/CX_KYSACCESSDENIEDEX
    /AWS1/CX_KYSCONFLICTEXCEPTION
    /AWS1/CX_KYSINTERNALSERVEREX
    /AWS1/CX_KYSRESOURCENOTFOUNDEX
    /AWS1/CX_KYSSERVICEQUOTAEXCDEX
    /AWS1/CX_KYSVALIDATIONEX
    /AWS1/CX_KYSCLIENTEXC
    /AWS1/CX_KYSSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_keyspacename TYPE /AWS1/KYSKEYSPACENAME /AWS1/KYSKEYSPACENAME

The name of the keyspace of the to be deleted table.

iv_tablename TYPE /AWS1/KYSTABLENAME /AWS1/KYSTABLENAME

The name of the table to be deleted.

RETURNING

oo_output TYPE REF TO /aws1/cl_kysdeletetablersp /AWS1/CL_KYSDELETETABLERSP

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->deletetable(
  iv_keyspacename = |string|
  iv_tablename = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
ENDIF.