Ant target: RemoveVirtualHosts

RemoveVirtualHosts removes the Commerce virtual host configurations.

Called by



  • The Administrative server must be running to run the RemoveCommerceServer target and any subtargets.
  • The file must exist for this Ant target to work. For information about generating the properties file, see Ant targets.

Required parameters

The name of the WebSphere Commerce instance with which you are working (for example, demo).
Note: Due to changes in virtual host configuration, you should run the RegeneratePlugin target to regenerate the Web server plug-in configuration file.


  • LinuxAIXFor IBM i OS operating systemWC_installdir/bin/ -DinstanceName=instance_name RemoveVirtualHosts
  • WindowsWC_installdir/bin/config_ant.bat -DinstanceName=instance_name RemoveVirtualHosts