remove expired keys from code