Created
April 3, 2015 16:39
-
-
Save dalmat36/afa57b216f921c3736d3 to your computer and use it in GitHub Desktop.
This code snippet shows how to remove a person document from the MongoDB "people" collection.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Remove document from collection | |
| collection.deleteOne(eq("First Name", "Marilyn")); | |
| System.out.println("Result After Delete\n"); | |
| printAllPeople(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment