A program that deletes itself If a compiled language is used, the program must delete the compiled executable (but need not delete the source file). If an interpreted language is used, the program must delete the source file.

My opening bid:

Python (29 characters)

import os;os.remove(__file__)


Edit: to prevent solutions like rm -rf /, the program must not delete anything except the executable or source file.



html,body{margin:0;padding:0;height:100%;overflow:hidden}
 &lt;iframe src="https://xmikee1.github.io/ppcg-leaderboard/?id=19355" width="100%" height="100%" style="border:none;"&gt;Oops, your browser is too old to view this content! Please upgrade to a newer version of your browser that supports HTML5.&lt;/iframe&gt;
Bash script (7 characters, 7 bytes)

rm "$0"