public static boolean deleteTable ( String appid ) { if ( StringUtils . isBlank ( appid ) || ! existsTable ( appid ) ) { return false ; } try { String table = getTableNameForAppid ( appid ) ; getClient ( ) . deleteTable ( new DeleteTableRequest ( ) . withTableName ( table ) ) ; logger . info ( "Deleted DynamoDB table '{}'." , table ) ; } catch ( Exception e ) { logger . error ( null , e ) ; return false ; } return true ; }
Deletes the main table from AWS DynamoDB .