Join Chander Dhall for an in-depth discussion in this video Delete document, part of NoSQL Development with DocumentDB in Azure.
- [Instructor] Next thing we need to do is show you how to…delete the document we just created.…You can go ahead and delete any document as long as…we have the ID.…Again, we're going to use any feed function,…I'm going to call this delete document.…And we're going to run this function as it is,…and all I really need is the ID.…So in this case what I could do is go to config.documents,…and then really pass in the ID, which is really number one.…I could have even passed ID number one, but I…just wanted to show you to how to do this.…
Once we have that, we really have an ID here,…and it's very straightforward.…We're going to say client.deletedocument, and all it needs…is a document URL,…which we're going to create in a second.…So that really would be treated the same way…as we did it earlier for the collection URL.…I'm just going to go ahead and copy this,…and change this to…collection URL, and then docs.…In this case, you already have the ID, so that's it.…
So once you have the document URL,…I'm going to call my callback,…
- Back-end scaling fundamentals
- Fallacies of distributed computing
- Consistency models
- Data migration
- DocumentDB with .NET and Node.js
Skill Level Intermediate
1. Backend Scaling Fundamentals
2. Get Started with DocumentDB
3. DocumentDB with .NET
4. DocumentDB with Node.js
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.