I will tell U what the lead mechanic at local Dodge House said: I am not a mechanic, so you do as you see fit:
NE way, mechanic had me pull the cable by bolt off of top of IBS, and let sit at least 4 hours to overnight. Now I guess U could pull negative cable: NE way, he said they pull off at RAM house for at least 2 hours, and of course charge that labor, LOL.
Be aware, cable off for that time will mean it will take a while for all modules to communicate to each other. It took 3 drive cycles for my Cruise to come back on my truck.
Now, remember, if U R putting new battery in truck, they are not usually charged to 100%, and U may need to put a charger on it to bring up to initial full charge. A lot of PPL say since pulling negative cable, charge battery at that time also. I am repeating of what some have posted. On my DT truck: with all the new computers and redesign, cause it is a Gen 5 truck: My truck charging at various times by alternator will go from 13.9 to 14.5 volts. When I replaced battery and had big talks at Dodge house, I did not charge the battery just let the truck bring the battery to full charge. (and I know better).
All above IMHO only and just my personal experience. You should do some more research and make sure you MAKE an informed decision, do not go on just 1 person(s) say so.