Application Delivery Management

Use API to forcefully delete a NetScaler instance from the config pack

When the NetScaler instance is removed from NetScaler Console without deleting its configpack, you might get an error. To avoid this error, delete the instance forcefully from the config pack. To forcefully delete a NetScaler instance from the config pack styleBook API.

PUT: https://<mas-ip>/stylebook/nitro/v2/config/configpacks/<configpack-ID>?mode=async&force_targets_delete=true

{
    "configpack": {
        "stylebook": {
            "name": "test-policy-patset",
            "namespace": "com.citrix.adc.stylebooks",
            "version": "1.1"
        },
        "parameters": {
            "lbname": "test11"
        },
        "targets": [
            {
                "instance_id": "f9bdf101-61ec-46a7-bf09-e9ce097b7cfd",
                "instance_ip": "10.106.100.116",
                "roles": [
                    "default"
                ]
            }
        ]
    }
}
<!--NeedCopy-->
Use API to forcefully delete a NetScaler instance from the config pack