public static final boolean deleteTableIfExists ( final AmazonDynamoDB dynamo , final DeleteTableRequest deleteTableRequest ) { try { dynamo . deleteTable ( deleteTableRequest ) ; return true ; } catch ( final ResourceNotFoundException e ) { if ( LOG . isTraceEnabled ( ) ) { LOG . trace ( "Table " + deleteTableRequest . getTableName ( ) + " does not exist" , e ) ; } } return false ; }
Deletes the table and ignores any errors if it doesn t exist .