         return managedObjectContext
     }
     
+    public func drop() {
+        
+        do {
+            let _ = try FileManager.default.removeItem(at: self.url)
+        } catch {
+            tLog(tag: "Error", error)
+        }
+        
+        self.defaultContext = self.managedObjectContext(name: self.nameDB)
+
+    }
+    
     public func saveContext () {
         let context = self.defaultContext
         

import CoreData

public class TCoreDataManager: NSObject {
    public private(set) var defaultContext: NSManagedObjectContext = NSManagedObjectContext(concurrencyType: .mainQueueConcurrencyType)
    
    public private(set) var nameDB: String

        return urls[urls.count-1]
    }
    
    public init(dbName name: String, sqliteName: String = "SingleViewCoreData", drop: Bool = false) {
        
        self.nameDB = name
        self.sqliteName = sqliteName + ".sqlite"
        
        super.init()
        
        if drop {
            print("""
!!!!!!!!!!!!!!!!!!!!!!!!!


    Drop Core Data



!!!!!!!!!!!!!!!!!!!!!!!!!
""")
            tLog("")
            tLog("!\n\n\n\n\n")
            tLog("!!!!!!!!!!!!!!!!!!!!!!!!!")
            self.drop()
        }
        
        self.defaultContext = self.managedObjectContext(name: name)
    }
