Ant target: RemoveInstanceDir

RemoveInstanceDir deletes the WebSphere Commerce instance configuration directory and its contents.

Attention: Deleting the WebSphere Commerce instance directory removes the configuration settings for the WebSphere Commerce instance. Be extremely careful when using this target. This target should be executed at the end of WebSphere Commerce instance cleanup.

Called by



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).


  • LinuxAIXWC_installdir/bin/ -DinstanceName=instance_name RemoveInstanceDir
  • WindowsWC_installdir/bin/config_ant.bat -DinstanceName=instance_name RemoveInstanceDir