@avshiyanov You can simply delete the sqlite file before you initialize anything else. Which version of CoreStore are you using?
@JohnEstropia commented on GitHub (Oct 23, 2016):
@avshiyanov You can simply delete the sqlite file before you initialize anything else. Which version of CoreStore are you using?
@JohnEstropia commented on GitHub (Oct 23, 2016):
If so you can use the `SQLiteStore`'s `fileURL` property to pass to `FileManager.default.removeItem(at:)`:
``` swift
let storage = SQLiteStore(...)
_ = try? FileManager.default.removeItem(at: storage.fileURL)
CoreStore.addStorage(storage, ...)
```
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @avshiyanov on GitHub (Oct 22, 2016).
For example after each update of app I want delete previous DB
@JohnEstropia commented on GitHub (Oct 23, 2016):
@avshiyanov You can simply delete the sqlite file before you initialize anything else. Which version of CoreStore are you using?
@avshiyanov commented on GitHub (Oct 23, 2016):
@JohnEstropia I use swift3 branch
@JohnEstropia commented on GitHub (Oct 23, 2016):
If so you can use the
SQLiteStore'sfileURLproperty to pass toFileManager.default.removeItem(at:):