Skip to content

Instantly share code, notes, and snippets.

@kreeger
Created January 8, 2019 19:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kreeger/87c6314394f3a67e1995028158e582b7 to your computer and use it in GitHub Desktop.
Save kreeger/87c6314394f3a67e1995028158e582b7 to your computer and use it in GitHub Desktop.
Example database deletion code for the blog post "Flapjack" on O'Reilly's engineering blog.
dataAccess.deleteDatabase(rebuild: true) { error in
if let error = error {
print(error.localizedDescription)
}
// It's almost as if it never happened.
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment