Skip to content

/AWS1/CL_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

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

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_kys~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.