public boolean delete ( String name , boolean bankAccount ) { boolean result = false ; if ( exist ( name , bankAccount ) ) { result = Common . getInstance ( ) . getStorageHandler ( ) . getStorageEngine ( ) . deleteAccount ( name , bankAccount ) ; if ( bankAccount ) { bankList . remove ( name ) ; } else { accountList . remove ( name ) ; } } return result ; }
Delete a account from the system