def deleteAccountType(self, id): accounttype = AccountService().getAccountType(id) if accounttype: accounttype.delete()
def deleteCurrency(self, id): currency = AccountService().getCurrency(id) if currency: currency.delete()