Files
hackacad/docs/chapters/subcommands/destroy.rst
2025-05-18 17:16:17 -06:00

33 lines
1.0 KiB
ReStructuredText

destroy
=======
Destroy jails or releases.
Bastille will normally ask if you are sure you want to delete targeted jail(s).
Use the ``-y|--yes`` option to bypass this prompt.
.. code-block:: shell
ishmael ~ # bastille destroy -a folsom
[folsom]:
folsom: removed
Deleting Jail: folsom.
Note: jail console logs archived.
/var/log/bastille/folsom_console.log-YYYY-MM-DD
Release can be destroyed provided there are no child jails. The ``-c|--no-cache``
option will retain the release cache (*.txz file), if you choose to keep it.
.. code-block:: shell
ishmael ~ # bastille destroy help
Usage: bastille destroy [option(s)] JAIL|RELEASE
Options:
-a | --auto Auto mode. Start/stop jail(s) if required.
-c | --no-cache Do no destroy cache when destroying a release.
-f | --force Force unmount any mounted datasets when destroying a jail or release (ZFS only).
-y | --yes Do no prompt. Just destroy.
-x | --debug Enable debug mode.