Stop the secondary system:
sapcontrol -nr <instance_number> -function StopSystem HDB
On secondary system unregister the secondary system:
hdbnsutil -sr_unregister
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
On primary system disable system replication:
hdbnsutil -sr_disable