Merging duplicate patients from different tracker programs

Hi

Please kindly assist, we have two tracker programs on dhis2. Some clients where then captured on both programs before we had a unique identifier across all programs. These are now causing problems as they are duplicates so how can we merge the patient demographics from the two programs such that each client is captured only once then enrolled to other programs.