remove items not related to keypairs