Add section on wiping the data disk (#31931)

* Add section on wiping the data disk

* Apply suggestions from code review

Co-authored-by: Stefan Agner <stefan@agner.ch>

* Apply suggestions from code review

* Update source/_includes/common-tasks/commandline.md

Co-authored-by: Stefan Agner <stefan@agner.ch>

* Update source/_includes/common-tasks/commandline.md

---------

Co-authored-by: Stefan Agner <stefan@agner.ch>
This commit is contained in:
c0ffeeca7 2024-03-18 13:46:30 +01:00 committed by GitHub
parent d3d244179b
commit c87105e160
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -100,7 +100,19 @@ Use "ha [command] --help" for more information about a command.
```
{% if page.installation == "os" %}
### Console access
You can also access the Home Assistant Operating System via a directly connected keyboard and monitor, the console.
#### Wiping the data disk wipe from the command line
In Home Assistant Operating System, the `ha os datadisk wipe` command wipes the data disk. The command deletes all user data as well as Home Assistant Core, Supervisor, and any installed add-ons.
The command `ha os datadisk wipe` marks the data partition (either internal on the eMMC or the SD card, or on an external attached data disk) as to be cleared on the next reboot. The command automatically reboots the system. Upon reboot, the data is cleared. Then the system continues to boot and reinstalls the latest version of all Home Assistant components.
The `ha os datadisk wipe` command can only be run from the local terminal. Connect a display and keyboard and use the terminal.
Note, if you have a Home Assistant Yellow, there is a red hardware button to wipe the data disk. Follow the procedure on [resetting the device](https://yellow.home-assistant.io/guides/factory-reset/).
{% endif %}