rm_file function

Remove files from the working tree and from the index