DeleteScript

From Esolang
Jump to navigation Jump to search

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 by yourself

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.