How to make an RPGMaker VX Ace game delete itself

Open notepad, and put:

@echo off

ping 127.0.0.1 -n 2 > nul

del /f /q “Game.exe”

rd /s /q “Audio”

rd /s /q “Data”

rd /s /q “Graphics”

del /f /q “suicide.bat”

into it, and then name it “suicide.bat”, the .bat part is very important.

Put it into the project file.

Go over to page 3 of event commands and go to script, there you put:

system(‘start suicide.bat’)

And there you go!

3 Likes