When lifecycle environments are no longer relevant to the host system or environments are added incorrectly to {SmartProxyServer}, you can remove the lifecycle environments from {SmartProxyServer}.
You can use both the {ProjectWebUI} and the Hammer CLI to remove lifecycle environments from {SmartProxy}.
-
In the {ProjectWebUI}, navigate to Infrastructure > {SmartProxies}, and select the {SmartProxy} that you want to remove a lifecycle from.
-
Click Edit and click the Lifecycle Environments tab.
-
From the right menu, select the lifecycle environments that you want to remove from {SmartProxy}, and then click Submit.
-
To synchronize {SmartProxy}'s content, click the Overview tab, and then click Synchronize.
-
Select either Optimized Sync or Complete Sync.
-
Select {SmartProxyServer} that you want from the list and take note of its id:
# {hammer-smart-proxy} list
-
To verify {SmartProxyServer}'s details, enter the following command:
# {hammer-smart-proxy} info \ --id My_{smart-proxy-context-titlecase}_ID
-
Verify the list of lifecycle environments currently attached to {SmartProxyServer} and take note of the Environment ID:
# {hammer-smart-proxy} content lifecycle-environments \ --id My_{smart-proxy-context-titlecase}_ID
-
Remove the lifecycle environment from {SmartProxyServer}:
# {hammer-smart-proxy} content remove-lifecycle-environment \ --id My_{smart-proxy-context-titlecase}_ID \ --lifecycle-environment-id My_Lifecycle_Environment_ID
Repeat this step for every lifecycle environment that you want to remove from {SmartProxyServer}.
-
Synchronize the content from {ProjectServer}'s environment to {SmartProxyServer}:
# {hammer-smart-proxy} content synchronize \ --id My_{smart-proxy-context-titlecase}_ID