Task

Delete a file called "input.txt" and delete a directory called "docs".

This should be done twice: once "here", i.e. in the current working directory and once in the filesystem root.




 
import os.
 
del(Arg), directory(Arg) =>
    rmdir(Arg).
 
del(Arg), file(Arg) =>
    rm(Arg).
 
main(Args) =>
    foreach (Arg in Args)
        del(Arg)
    end.
 