Use the drop and logical parameters with sp_replication_path to remove an entire logical replication path.
To remove the entire logical path, do not specify a Replication Server or element in the command. If you remove the last element in a logical path, Replication Server removes the entire logical path.
Note: You cannot remove a logical path or a physical path if objects are still bound to it.