1. Add an another data path (MediaAgent and Library) to CommServeDR and other storage policies using the MediaAgent you are planning to decommision.
2. If you have locally attached mount paths and would like to retain data then move those mount paths to other MediaAgent. if not delete contents and seal associated DDBs.
After above steps you should be able to decommision the MediaAgent.