/** * Executes a delete table request using the DynamoDB client * @param tableName */ public void executeDeleteTableRequest(String pTableName){ try{ DeleteTableRequest deleteTableRequest = new DeleteTableRequest().withTableName(pTableName); DeleteTableResult result = dynamoDBClient.deleteTable(deleteTableRequest); waitForTableToBeDeleted(pTableName); LOG.debug("Schema: " + result.getTableDescription() + " deleted successfully."); } catch(Exception e){ LOG.debug("Schema: " + pTableName + " deleted."); e.printStackTrace(); } }