delteFile method
tests done