This method removes a destination from the project.
Syntax
ReplicationProject.RemoveDestination(Destination)
Parameters
Destination
The server or route to remove from the project.
Remarks
You must have Site Server Publishing administrator privileges on the server to call this method.
Example
The following example removes the destination server Capricorn from the list of destination servers for the Test project.
Option Explicit
On Error Resume Next
const OPEN_EXISTING_PROJECT = 2
dim ReplServer
set ReplServer = CreateObject("CrsApi.ReplicationServer")
ReplServer.Initialize("")
dim ReplProject
set ReplProject = ReplServer.OpenProject("Test", OPEN_EXISTING_PROJECT)
ReplProject.RemoveDestination("Capricorn")
'Release objects
set ReplProject = Nothing
set ReplServer = Nothing
See Also