📜  删除 Realm 数据库 swift 代码示例

📅  最后修改于: 2022-03-11 15:01:00.699000             🧑  作者: Mango

代码示例1
var realm = try! Realm()

open func DeleteUserInformation(){
        
        realm.beginWrite()
        
        let mUserList = try! realm.objects(User.self)
        realm.delete(mUserList)
        
        
        try! realm.commitWrite()
        
    }