code: 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;
      }
docs: Delete a account from the system
  
  @param name The account name
  @param bankAccount If the account is a bank account
  @return True if the account has been deleted. Else false.