Created
August 5, 2018 04:25
-
-
Save hwjeremy/46c59efd452507f98577310734cd15b3 to your computer and use it in GitHub Desktop.
Delete an Account in Amatino Swift - A double-entry accounting library for iOS & MacOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Amatino Swift: https://github.com/amatino-code/amatino-swift | |
// Double entry accounting API | |
try account.delete( | |
entryReplacement: cash, | |
callback: { (error) in | |
// A lack of error indicates the Account is a goner | |
}) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
account
andcash
instances are examples ofAccount
instances retrieved or created using techniques visible in the Account.create() and Account.retrieve() gists.