StyleBook configuration

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. So, you must forcefully delete that instance from the config pack.

You can use the StyleBook API to forcefully delete a NetScaler instance from the config pack.

PUT: https://<ADM-endpoint-name>/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

In this article