# Upgrading Connectware to 2.1.0 (Kubernetes)

Connectware 2.1.0 introduces support for the Siemens SIMATIC S7+ protocol and OPC UA complex data types. It also reintroduces service-level tracking for the Systemstate protocol, offering improved performance. Furthermore, it provides significant enhancements to resource deviation tracking and OPC UA reliability. For a complete list of changes, see the [2.1.0 changelog](https://docs.cybus.io/2-1-0/reference/changelog#what-has-changed-in-2.1.0).

{% stepper %}
{% step %}

### Upgrading Connectware to 2.1.0

Follow the instructions in [Upgrading Connectware (Kubernetes)](https://docs.cybus.io/2-1-0/documentation/installation-and-upgrades/upgrading-connectware/upgrading-connectware-kubernetes) to upgrade to version 2.1.0.
{% endstep %}

{% step %}

### Optional: Cleaning Up Disk Space After Upgrading to 2.1.0

As part of the Systemstate improvements in 2.1.0, the `resourceStates` NATS bucket is no longer used. If you want to save disk space, you can delete this bucket.

* To clean up disk space, run the following:

{% hint style="info" %}
Replace `${NAMESPACE}` with your Connectware namespace (e.g., `cybus`).
{% endhint %}

{% code lineNumbers="true" %}

```bash
kubectl debug -it \
  -n ${NAMESPACE} $(kubectl get pod -n ${NAMESPACE} -lapp=system-control-server -o name) \
 --image=registry.cybus.io/cybus/connectware-toolkit:1.4.0 \
 --target=system-control-server --profile general \
 -- bash -c 'source /proc/1/root/connectware_certs/env-1.0.sh && nats -s nats:4222 --user cybus_auth --password $CYBUS_NATS_AUTH_PASSWORD --tlscert=/proc/1/root/connectware_certs/cybus_client.crt --tlskey=/proc/1/root/connectware_certs/cybus_client.key --tlsca=/proc/1/root/connectware_certs/cybus_combined_ca.crt kv del resourceStates -f'
```

{% endcode %}
{% endstep %}
{% endstepper %}
