---
title: "<code class=\"docutils literal notranslate\"><span class=\"pre\">pbl</span> <span class=\"pre\">erase</span></code>"
canonical_url: https://developer.repebble.com/pebbleos/docs/pbl/erase/
last_updated: 2026-10-21
sdk_version: 4.33.1
---
# <code class="docutils literal notranslate"><span class="pre">pbl</span> <span class="pre">erase</span></code>

Source: https://developer.repebble.com/pebbleos/docs/pbl/erase/

Erase parts of the flash of a watch connected through a development kit: regions of the board’s flash layout, by name, or address ranges in it. [pbl bork](https://developer.repebble.com/pebbleos/docs/pbl/bork.md) erases everything instead.

Warning

Erasing `FILESYSTEM` wipes the pairings, apps and settings stored on the watch.

```
pbl erase --region FILESYSTEM --region SHARED_PRF_STORAGE
```

The regions are the ones in the `fw/flash_region` header of the board’s flash part. `--region NAME:SIZE` erases only the first `SIZE` bytes of a region, and `--range ADDRESS:SIZE` any range; both can be repeated. Ranges use the layout’s addresses, and must be aligned to the flash’s erase size (4 KiB).

## Options

```
pbl erase [-h] [-b DIR] [--dry-run] [--region NAME[:SIZE]]
          [--range ADDRESS:SIZE] [-r {nrfutil,openocd,sftool}] [--tty TTY]
```

`--region NAME[:SIZE]`

Erase a flash region, or only its first SIZE bytes (repeatable)

`--range ADDRESS:SIZE`

Erase SIZE bytes from ADDRESS (repeatable)

`-r, --runner {nrfutil,openocd,sftool}`

Override the board’s runner

`--tty TTY`

Serial port for the sftool runner

Generated from PebbleOS [3a7b71785](https://github.com/coredevices/pebbleos/commit/3a7b71785fd439666c4a8bc116f561140e8dec01). This page is maintained in the pebbleos repository: [docs/pbl/erase.md](https://github.com/coredevices/pebbleos/blob/3a7b71785fd439666c4a8bc116f561140e8dec01/docs/pbl/erase.md).
