For AD20 and older, I used to follow this documentation:
https://www.altium.com/documentation/altium-designer/sch-dlg-resetpartsheetsymboluniqueidsreset-part-and-sheet-symbol-unique-ids-ad?version=20.2
Now the option is gone.
Starting in Version: 21Up to Version: Current