Purge app
Removes the app's containers and deletes its data volumes. The data does not come back. Protection: token and confirm_name equal to the app in the path.
Authorizations
The token you start the server with: homebutler serve --token <token>, or web.token in the config file. Send it as Authorization: Bearer <token>. When the server has a token, every /api/ route except the CORS preflight requires it, reads included.
Path parameters
The app name from List apps.
Body
application/jsonThe same value as the app in the path.
Response
200 · application/jsonThe app and its data are gone.
What happened.
The app name.
Why a pre-flight check failed. Present when status is failed.
The host port.
The folder with the app's compose file and data.
The containers' state after the install.
true after an uninstall, false after a purge.
Present when an earlier install's state couldn't be carried over, or when part of the data is in Docker volumes outside the app directory.
Volumes that still exist after a purge. Present only when not empty.
Volumes Docker couldn't be asked about during a purge. Present only when not empty.