Skip to content

Instantly share code, notes, and snippets.

@amokan
Created August 25, 2011 21:06
Show Gist options
  • Save amokan/1171952 to your computer and use it in GitHub Desktop.
Save amokan/1171952 to your computer and use it in GitHub Desktop.
mongo db command for dropping a "field"
db.<collection>.update({}, {$unset: {<attrib>:1}},false, true)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment