Home / Command Prompt Tutorials For Beginners / CMD Tutorials For Beginners (Part-8) Delete File Using CMD

CMD Tutorials For Beginners (Part-8) Delete File Using CMD

Command prompt tutorial

Today I am going to show you how to delete file using cmd  .

Hello friends , or 🙂  I am very happy for being with you after having long vacation. Believe me , I missed you lot. or 🙁  I was eagerly waiting , when could I come back and share my ideas with you? All of you are my true friends by whom I can share my thoughts frequently breaking through all restriction, aren’t it? :Smile:

I hope all of you are well through  your mind. However, let’s go to point.

If you are new  in this blog or newbie in using cmd I welcome you to read my previous blog from

CMD Tutorials For Beginners (Part-1) How To Create Folder By CMD

Delete File Using CMD

Suppose , I have a file named mymeetbook.txt on desktop.

delete file using cmd
Mymeetbook.txt

I want to delete this file. I will show you this process by browsing directory. If you cannot browse directory  by cmd please read this post How To Open Program Files Using cmd .

So , to do that, firstly I have to go Desktop directory.Type

cd desktop

delete file using cmd
desktop

If you can  browse desktop directory or you can type your desired file names. However , I am showing  you by browsing files. To browse directory ,

dir 

When I typed dir  ,all files are shown . Here, I got my desired file named mymeetbook.txt which I want to delete.

Delete files using CMD
mymeetbook.txt

  

So, If you want to delete you have to type del then your file name with extension. Such as I am going to  delete files named mymeetbook.txt so I have to type

del mymeetbook.txt

delete file using cmd
code of delete

So again type dir to be sure that your file got deleted.

delete file using cmd
directory

See, mymeetbook.txt was deleted. :Cool:

If ,I you want to delete files all files of any extension, then what to do?hmm, Tell me.

Suppose ,In Boss folder on desktop , I want to delete all text files. So to do that , You have to type

del / “your path with directory name “/then type  star (*) with dot (.) and extension . I want to delete all text file in Boss directory on desktop. To do that I have to go desktop directory then boss directory.

Delete files using CMD
directory

  

There are one media file and two text files. Now I have to type this code to delete all text extension.

del C:\Users\jon\Desktop\Boss*.txt

delete file using cmd
text directory

Then,

delete file using cmd
delete text file

All text were gone away. :Cool:

In this away we can  delete files using cmd .

♥♥♥ Previously, I mentioned that I spent a vacation  for a tour. In this tour  ,I realize that It’s too tough to make happy others.

Now I want to share one of my favorite song . Though It is bengali  , but people  regardless of religion , cast and creed  feel music through lyrics , don’t it ? So, what’s problem ?

 

Thank you. See you later. Till then take care yourself. or 🙂 ..Oh!! yaeh!! Don’t forget to subscribe to get next post or leave a comment to give your feedback .Bye Bye.

 

 

1069 Total 3 Today

Check Also

Command prompt tutorial

CMD Tutorials For Beginners (Part-3) How To Change Drive Directory In CMD

                It’s post is about how to change …

Comments Area:

Leave a Reply

Your email address will not be published. Required fields are marked *

Loading Facebook Comments ...