I am making a program for my friend but i dont want him to be able to distribute it, so i wanted to make it so when the program was done running it would delete itself, would i just use the command

Kill Self
?

That seems a little to easy...
Please help.. thanks!