Safer way to remove mkey.