Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Cisco 200-901 Exam - Topic 2 Question 104 Discussion

Posted by Delmy on Nov 24, 2025 at 05:25 PM

The project is migrated to a new codebase, the ''old_project'' directory must be deleted. The directory has multiple read-only files, and it must be deleted recursively without prompting for confirmation. Which bash command must be used?

Suggested Answer: A

To delete a directory and all of its contents (including read-only files) recursively without prompting for confirmation, the rm command with the -rf flags should be used.

rm -r: This option tells rm to remove directories and their contents recursively.

rm -f: This option tells rm to force the removal of files, ignoring nonexistent files and never prompting for confirmation.

Therefore, the correct command is rm -rf old_project. This command will recursively remove the old_project directory and all its contents without any confirmation prompts, regardless of file permissions.


Topic 2, Exam Pool B

Get Premium 200-901 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
30 comments · newest first
MA
Maryanne 6 months ago
I agree, A is the command we need. No prompts, just delete!
PE
Percy 6 months ago
C) and D) won't work for directories with files. A is the best choice.
MI
Miesha 6 months ago
A) is the only option that works for read-only files.
SH
Shaun 7 months ago
I feel like B) is safer, but it won't handle read-only files.
GA
Galen 7 months ago
Definitely A. The recursive flag is crucial here.
CO
Corazon 7 months ago
I think it's A) rm -rf old_project. It deletes everything without asking.
TR
Trinidad 7 months ago
I thought rmdir was for empty directories only?
MA
Malika 7 months ago
Wait, are you sure that's safe?
PA
Patti 8 months ago
Agreed, no confirmation needed for that!
AR
Arlene 8 months ago
It's definitely A) rm -rf old_project.
KI
Kirk 8 months ago
A) rm -rf old_project? More like A) rm -rf my_career if I mess this up!
WA
Wai 8 months ago
A is the obvious choice. I mean, who has time to deal with read-only files these days? Just blast it away!
LY
Lynelle 9 months ago
Option A is the way to go. Who needs confirmation anyway? Just nuke that directory!
PA
Pansy 9 months ago
I agree, A is the way to go. Deleting read-only files can be a pain, but -rf gets the job done.
FR
Francesco 9 months ago
I feel like "rm -rf" is definitely the way to go for this scenario, but I just hope I don't mix it up with "rmdir" again!
LE
Leoma 9 months ago
I practiced a similar question where we had to delete a directory with files, and I chose "rm -r" but I think we need the "-f" here too.
TH
Thersa 9 months ago
I'm not entirely sure, but I remember something about "rmdir" only working for empty directories. That makes me lean towards option A as well.
AN
Annita 9 months ago
A seems like the best option. The 'rm -rf' command is the safest way to delete the directory without any issues.
IS
Isabella 10 months ago
I'm pretty confident that A is the correct answer. The 'rm -rf' command is the standard way to delete a directory and its contents recursively without prompting.
LE
Lenna 10 months ago
Definitely go with A. 'rm -rf' is the way to go when you need to delete a directory and all its contents, no matter the file permissions.
LU
Lucina 10 months ago
I think the command we need is the one that includes the "-f" option to force deletion, right? So maybe it's A?
KR
Kris 10 months ago
A) rm -rf old_project is the correct answer. It will recursively delete the directory and all its contents without prompting for confirmation.
DE
Devora 11 months ago
A is the only way to go for recursive deletion.
RA
Raymon 11 months ago
Hmm, I'm a bit confused. Isn't 'rmdir' only for empty directories? I'm not sure if that would work for a directory with files.
JU
Junita 11 months ago
I think the answer is A. The 'rm -rf' command will recursively delete the directory and all its contents, even if they are read-only.
EV
Evangelina 6 months ago
↳ replying to Junita
Just be careful with it, it’s powerful!
BR
Brandon 6 months ago
↳ replying to Junita
I’ve used that command many times, it works perfectly.
JI
Jillian 6 months ago
↳ replying to Junita
No doubt about it, A handles read-only files too.
CH
Chaya 10 months ago
↳ replying to Junita
Yeah, 'rm -rf' is the way to go for this.
LE
Leah 11 months ago
↳ replying to Junita
I agree, A is definitely the right choice.
0/2000 characters

Save Cancel