Added code for Java account.delete()