remove everything expect keyval