mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-01-11 20:00:30 +01:00
Is it possible remove database from code? #94
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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:):