add deleteFile function