> ## Documentation Index
> Fetch the complete documentation index at: https://sysg.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# purge

# purge

Remove all systemg state and start fresh.

```sh theme={null}
$ sysg purge
```

**Warning Warning**: Permanently deletes all service history, logs, and runtime files.

## Options

| Short | Long          | Description                                               |
| ----- | ------------- | --------------------------------------------------------- |
| `-`   | `--sys`       | Opt into privileged system mode. Requires running as root |
| `-`   | `--log-level` | Set verbosity (`debug`, `info`, `warn`, `error`)          |

## What gets removed

* Service status history
* Cron execution history
* All log files
* PID tracking files
* Supervisor state
* Socket files

## When to use

* After ungraceful shutdowns
* To clear corrupted state
* Before uninstalling systemg
* To free disk space

## Example

```sh theme={null}
$ sysg purge
$ All systemg state has been purged
```

## See also

* [`stop`](/how-it-works/commands/stop) - Stop services without removing state
* [`start`](/how-it-works/commands/start) - Start fresh after purging
