Uninstalling a Windows replication server

To uninstall a replication server, call the database-stored procedure delete_replication_server, which removes the specified ID from the replication set. Be careful not to delete the wrong server, or you might lock yourself out. The details of this procedure are beyond the scope of this guide, but basically you must log in to the database with SQL Server Management Studio. You can call the procedure with something like:
call dbo.delete_replication_server(n)
where n is the identifier of the server to delete.

The steps involved in completely deleting the server are beyond the scope of this guide, but the full procedure is available in the following article How to remove a secondary DSA server from BigFix Administration Tool.