DeleteScript
Jump to navigation
Jump to search
- Not to be confused with SletScript.
DeleteScript is a very funny esolang created by User:None1, any DeleteScript program deletes itself.
Intepreters
Interpreters of DeleteScript is usually live in your OS ('del' in Windows and 'rm' in UNIX-based systems), but if you want, these are some other interpreters.
C
#include<stdio.h>
int main(int argc, char *argv[]){
remove(argv[1]);
return 0;
}
Python
import os,sys os.remove(sys.argv[1])
Running DeleteScript on your own
In Windows, you can run a DeleteScript program manually by selecting it in the explorer and press shift+delete, then press enter or the Y key.
If the program disappears, you have run it successfully.
Another method
- Select the program and the press Delete. If program appears in Recycle Bin, then you've compiled it.
- Find the program in Recycle Bin and press Delete, then press Enter or Y. If program disappears, then you've executed it.
This may also work in Linux, or MacOS.