mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-06 09:47:25 +00:00
28 lines
597 B
Plaintext
28 lines
597 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# vagrant destroy
|
|
|
|
> Stop a guest machine and destroy all its resources.
|
|
> Any boxes installed are kept intact.
|
|
> See also: `vagrant`.
|
|
> More information: <https://developer.hashicorp.com/vagrant/docs/cli/destroy>.
|
|
|
|
- Destroy the currently running machine:
|
|
|
|
`vagrant destroy`
|
|
|
|
- Target a machine by name or ID:
|
|
|
|
`vagrant destroy {{name|id}}`
|
|
|
|
- Do not ask for confirmation before destroying:
|
|
|
|
`vagrant destroy {{[-f|--force]}}`
|
|
|
|
- Shut down the machine gracefully:
|
|
|
|
`vagrant destroy {{[-g|--graceful]}}`
|