Skip to content

Instantly share code, notes, and snippets.

@kmkrn
Last active December 30, 2017 16:45
Show Gist options
  • Save kmkrn/f21e5aebd908aadeca02c8db870e2b0c to your computer and use it in GitHub Desktop.
Save kmkrn/f21e5aebd908aadeca02c8db870e2b0c to your computer and use it in GitHub Desktop.
Deleting objects from realm
let realm = try! Realm()
try! realm.write {
realm.deleteAll()
}
let serializer = JSONSerializer()
serializer.serialize(input: "CatPeople")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment