Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

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()
        
    }
 
PREVIOUS NEXT
Tagged: #Delete #Realm #database #swift
ADD COMMENT
Topic
Name
5+1 =