implement deleteFile method , need add test for him