Change deletion code for commands file to overwrite data in file, not delete file.