MongoDB Tutorial for Beginners 9 - MongoDB Delete Document

preview_player
Показать описание
In this Tutorial we will learn. How to install MongoDB, How to create new collections that store documents, You'll learn about the most common and used MongoDB shell commands to manage your documents.

★★★Top Online Courses From ProgrammingKnowledge ★★★

★★★ Online Courses to learn ★★★

★★★ Follow ★★★

DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This help support the channel and allows us to continue to make videos like this. Thank you for the support!
Рекомендации по теме
Комментарии
Автор

thank you, you explain each thing nicely, love to watch your videos

Niranjan-fw
Автор

Hi. Do you know how I can validate that if a schema has a field as a foreign key it does not allow me to delete the record?

mateoloaizarios
Автор

Hello SIR Please help Me with an issue


This is about deletion of batch files that contain a specific term

I have 1000 documents in my cluster

What I want to do is

I want to delete all the files that have a specific word in their 'file_name'

Example

Under field - 'file_name'

1. Thor Ragnarok
2. Thor 2
3. Avengers

Now please help me with a command that

Deletes all the files that contain the word THOR


THANKS 😊

BEST CHANNEL AND TUTORIALS EVER

HithaishiDesai
Автор

So we learn that the “update” command by default updates only 1 document, and you have to specify the “multiple” modifier, while the “remove” command by default deletes multiple documents, so you must specify 1 to prevent that. Do I still like MongoDB?

benheideveld
Автор

In this example if I want to delete the 2nd record of age 16 .then??

abhiruparoy