1. Stop the secondary system:
sapcontrol -nr <instance_number> -function StopSystem HDB
2. On secondary system unregister the secondary system:
hdbnsutil -sr_unregister
3. If you want to use this secondary as a normal SAP HANA installation from now on, you have to start it to complete the unregistration. On the secondary execute:
sapcontrol -nr <instance_number> -function StartSystem HDB
4. On primary system disable system replication:
hdbnsutil -sr_disable