In this article:
NAME
vmrm — delete a virtual machine home directorySYNOPSIS
vmrm | [-hkqrvy] vmhome_dir … |
DESCRIPTION
Delete a virtual machine home directory.OPTIONS
The options are as follows:- -h
- Show usage information summary then exit.
- -k
- Keep the storage image and other unrecognized files, only select vmtools(7) own files for deletion.
- -q
-
Decrease verbosity. Add several -q options to decrease verbosity even more (-qq by default to get minimal output). See vmtools.conf(5) for more information about verbosity levels.
- -r
-
Recursive mode: remove all child virtual machines too.
- -v
-
Increase verbosity. Add several -v options to increase verbosity even more (-vvv by default to get the most verbose output, including debugging messages). See vmtools.conf(5) for more information about verbosity levels.
- -y
-
Don’t ask any question: accept all confirmation requests and automatically select the default answer in any other situation.
ENVIRONMENT
- TMPDIR
- Default location to store temporary files, by default /tmp.
- XDG_CONFIG_HOME
- Location of user’s configuration files, by default ~/.config.
FILES
- /usr/local/lib/vmtools
- Libraries shared by the vmtools project utilities.
- /usr/local/share/vmtools/vmtools.conf
- Virtual machine default settings, see vmtools.conf(5).
- ~/.config/vmtools
- User overrides (if cfg_include_userhome is set to “yes”).
- /etc/vmtools
- System-wide overrides.
EXIT STATUS
The vmrm utility exits 0 on success, and >0 if an error occurs.EXAMPLES
- Example 1:
-
Delete a single virtual machine:
vmrm ./myVM
- Example 2:
-
Recursively delete all virtual machines located in a directory:
vmrm -r ~/trash/*