# Updates, rollback & teardown

URL: https://skali.dppst.com/docs/updates-and-rollback/

> Keep your Cloudflare Skali instance up to date in one click, roll back instantly if needed, or cleanly delete all Cloudflare resources.

The **Skali** desktop app (and `skali` CLI) is the single control center for managing the lifecycle of your Cloudflare instances.

## Automatic update notifications

- Your web `/admin` dashboard displays a subtle notification banner whenever a newer **Web** release or **Skali desktop app** version is available (tracking the latest desktop version that connected via the `X-Skali-Client` header).
- The desktop app also checks GitHub Releases on startup and shows a clean update banner.
- The Skali binary **never** bundles an old snapshot of the web code: it always downloads the official `skali-web-vX.Y.Z.zip` bundle from GitHub Releases and verifies its **SHA-256** checksum before touching Cloudflare.

## Updating in 1 click

1. Open **Skali** and locate your instance card.
2. Click **Update**.
3. Skali downloads the verified web bundle, applies any new **expand-only** D1 schema migrations, uploads the updated Static Assets and Worker script, and **preserves all existing secrets** (`PLAYBACK_HMAC_SECRET`, R2 credentials, email bindings).

Live operation logs appear right beneath the instance card, with a **Copy** button if you need to inspect or share them.

## Instant 1-click rollback

Every D1 migration in Skali follows a strict **expand-only** rule so newer schemas remain backward-compatible with the previous Worker version.

If you ever want to revert after an update:
1. Click **Rollback (vX.Y.Z)** on your instance card in Skali (or run `skali rollback`).
2. Skali calls the Cloudflare Workers Deployments API to immediately reactivate the previous deployment version.

## Complete Cloudflare teardown

Want to decommission a test or old instance cleanly without hunting through Cloudflare menus?

1. Open the instance options in **Skali** and choose **Delete on Cloudflare**.
2. Confirm by typing the exact Worker name (double confirmation prevents accidents).
3. Skali deletes the **Worker**, deletes the **D1 database**, empties all objects inside the **R2 bucket**, removes the **R2 bucket** itself, and cleans up any queued uploads locally.

## Safe bug reporting

If an operation fails, Skali displays a **Report a bug** button (also available in `/admin`). Diagnostics are automatically scrubbed by `sanitize_diagnostics` (removing API keys, Cloudflare JWTs, and secrets) before opening a pre-filled GitHub issue or copying a plain report to your clipboard.
