cmd script delete itself after executing code example
Example: How to run batch file and dellete it
@echo off
set mypath=%cd%
start %mypath%\filename here
del %mypath%\batcfilename.bat
exit
@echo off
set mypath=%cd%
start %mypath%\filename here
del %mypath%\batcfilename.bat
exit