We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.
DeleteScript
- 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 successfully. Note: The recycle bin contains all the DeleteScript files that have already been compiled.
- Find the program in Recycle Bin and press Delete, then press Enter or Y. If program disappears, then you've executed it successfully.
This may also work in Linux, or MacOS.
Method #3
If you have a third-party antivirus program on your computer, you can use its file-shredding feature (if it has one, or a similar feature) to run the DeleteScript file. If the file disappears, it means it ran successfully. This works on almost all operating systems.