remove deactivated keys