First check if it exists and what the absolutePath is. Compare that with what you expect.
Also delete() returns a boolean whether is was a success or not.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.