Answers for "how to delete all realm database in swift 4"

0

Delete Realm database swift

var realm = try! Realm()

open func DeleteUserInformation(){
        
        realm.beginWrite()
        
        let mUserList = try! realm.objects(User.self)
        realm.delete(mUserList)
        
        
        try! realm.commitWrite()
        
    }
Posted by: Guest on October-27-2021

Code answers related to "how to delete all realm database in swift 4"

Code answers related to "Swift"

Browse Popular Code Answers by Language