function for removing a user key.