Skip to content

Instantly share code, notes, and snippets.

@prakashthegyan
Created February 8, 2020 08:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prakashthegyan/e78979727400c5802b6d4f1cc12f5f76 to your computer and use it in GitHub Desktop.
Save prakashthegyan/e78979727400c5802b6d4f1cc12f5f76 to your computer and use it in GitHub Desktop.
myquery = ({ "name":{"$in": ["Gyan","Eliot"]}})
x = table.delete_many(myquery)
print(x.deleted_count, " documents deleted.")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment