I\'ve looked around for an answer to this one but couldn\'t find one.
I have written a simple script that does initial server settings and I\'d like it to remove/unlink
rm -- "$0"
Ought to do the trick. $0 is a magic variable for the full path of the executed script.