Swift Remove Object from Realm : <p>I have Realm Object that save list from the JSON Response. But now i need to remove the object if the object is not on the list again from JSON. How i do that?
This is my init for realm</p>

<pre><code>func listItems (dic : Array&lt;[String:AnyObject]&gt;) -&gt; Array&lt;Items&gt; {
        let items : NSMutableArray = NSMutableArray()
        let realm = try! Realm()
        for itemDic in dic {
            let item = Items.init(item: itemDic)
                try! realm.write {
                    realm.add(item, update: true)
                }
            items.addObject(item)
        }
        return NSArray(items) as! Array&lt;Items&gt;
}
</code></pre>
