A good reason for using this solution is that, in theory at least, you could have a possible race condition with your code. Between check for the existence of the file (-e) and deleting the file another process could have deleted it or even opened it.