在 MongoDB Collection 內完全移除一個 Field 發表於 2018-10-25 更新於 2020-11-10 分類於 資料庫庫 Remove mongodb field from collections12345678{ name: 'book', tags: { words: ['abc','123'], lat: 33, long: 22 }} db.example.update({}, {$unset: {tags.words:1}}, false, true);remove words 1234567{ name: 'book', tags: { lat: 33, long: 22 }} StackOverflow : How to remove a field completely from a MongoDB document?