The following sample deletes an existing account record.
//for this example, it is assumed that you already know the target account record's unique key (where uniqueKey is a String variable)
protected AccountRepository accountRepository;
accountRepository.deleteAccount(uniqueKey);