deleteFile function is working now