Glad you got it running ok

When I cleaned out my egr valve - I also cleaned out the throttle body (it was really dirty !) - but I did not elec disconnected it - I placed a plastic tub in the engine bay and cleaned it out in situ - seemed to work ok

Car engine has been running nicely since.
Leaving it connected means it does not have to relearn or need a reset.