{"action":"created","issue":{"url":"https://api.github.com/repos/realm/realm-cocoa/issues/2134","labels_url":"https://api.github.com/repos/realm/realm-cocoa/issues/2134/labels{/name}","comments_url":"https://api.github.com/repos/realm/realm-cocoa/issues/2134/comments","events_url":"https://api.github.com/repos/realm/realm-cocoa/issues/2134/events","html_url":"https://github.com/realm/realm-cocoa/issues/2134","id":91361731,"number":2134,"title":"Feature request: Remove function for the List type.","user":{"login":"shmidt","id":1472370,"avatar_url":"https://avatars.githubusercontent.com/u/1472370?v=3","gravatar_id":"","url":"https://api.github.com/users/shmidt","html_url":"https://github.com/shmidt","followers_url":"https://api.github.com/users/shmidt/followers","following_url":"https://api.github.com/users/shmidt/following{/other_user}","gists_url":"https://api.github.com/users/shmidt/gists{/gist_id}","starred_url":"https://api.github.com/users/shmidt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shmidt/subscriptions","organizations_url":"https://api.github.com/users/shmidt/orgs","repos_url":"https://api.github.com/users/shmidt/repos","events_url":"https://api.github.com/users/shmidt/events{/privacy}","received_events_url":"https://api.github.com/users/shmidt/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/realm/realm-cocoa/labels/pending","name":"pending","color":"ededed"}],"state":"open","locked":false,"assignee":{"login":"yoshyosh","id":775056,"avatar_url":"https://avatars.githubusercontent.com/u/775056?v=3","gravatar_id":"","url":"https://api.github.com/users/yoshyosh","html_url":"https://github.com/yoshyosh","followers_url":"https://api.github.com/users/yoshyosh/followers","following_url":"https://api.github.com/users/yoshyosh/following{/other_user}","gists_url":"https://api.github.com/users/yoshyosh/gists{/gist_id}","starred_url":"https://api.github.com/users/yoshyosh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yoshyosh/subscriptions","organizations_url":"https://api.github.com/users/yoshyosh/orgs","repos_url":"https://api.github.com/users/yoshyosh/repos","events_url":"https://api.github.com/users/yoshyosh/events{/privacy}","received_events_url":"https://api.github.com/users/yoshyosh/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-06-26T21:02:01Z","updated_at":"2015-06-26T22:29:44Z","closed_at":null,"body":"```swift\r\n        // Link objects\r\n        var person = Person()\r\n        person.name = \"Tim\"\r\n        person.dogs.append(mydog)\r\n\r\n        realm.write {\r\n            realm.add(person)\r\n        }\r\n```\r\nThere should be an option to unlink objects without object deletion:\r\n```swift\r\n        realm.write {\r\n            person.dogs.remove(mydog)\r\n        }\r\n```\r\nCurrently there are ```removeObjectAtIndex, replace``` and ```removeLast```, but its cumbersome to calculate index of object before unlinking.\r\n"},"comment":{"url":"https://api.github.com/repos/realm/realm-cocoa/issues/comments/115908731","html_url":"https://github.com/realm/realm-cocoa/issues/2134#issuecomment-115908731","issue_url":"https://api.github.com/repos/realm/realm-cocoa/issues/2134","id":115908731,"user":{"login":"astigsen","id":69422,"avatar_url":"https://avatars.githubusercontent.com/u/69422?v=3","gravatar_id":"","url":"https://api.github.com/users/astigsen","html_url":"https://github.com/astigsen","followers_url":"https://api.github.com/users/astigsen/followers","following_url":"https://api.github.com/users/astigsen/following{/other_user}","gists_url":"https://api.github.com/users/astigsen/gists{/gist_id}","starred_url":"https://api.github.com/users/astigsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astigsen/subscriptions","organizations_url":"https://api.github.com/users/astigsen/orgs","repos_url":"https://api.github.com/users/astigsen/repos","events_url":"https://api.github.com/users/astigsen/events{/privacy}","received_events_url":"https://api.github.com/users/astigsen/received_events","type":"User","site_admin":false},"created_at":"2015-06-26T22:29:44Z","updated_at":"2015-06-26T22:29:44Z","body":"`person.dogs.remove(mydog)` is also ambiguous if there are multiple links to the same object in the array."}}