         // Merge thread-related context into the main context
         self.managedObjectContext.mergeChangesFromContextDidSaveNotification(notification)
     }
+
+    public func removeDatabase() throws {
+        try NSFileManager.defaultManager().removeItemAtURL(storeURL)
+    }
 }


        var failureReason = "There was an error creating or loading the application's saved data."
        do {
            try coordinator.addPersistentStoreWithType(NSSQLiteStoreType, configuration: nil, URL: storeURL, options: options)
        } catch {
            // Report any error we got.
            var dict = [String: AnyObject]()

        
        return coordinator
    }()

    private lazy var storeURL: NSURL = self.applicationDocumentsDirectory().URLByAppendingPathComponent(self.modelName + ".sqlite")
    
    private init(modelName: String) {
        self.modelName = modelName
