In this article:
NAMEvmrm — delete a virtual machine home directory
|vmrm||[-hkqrvy] vmhome_dir …|
DESCRIPTIONDelete a virtual machine home directory.
OPTIONSThe options are as follows:
- Show usage information summary then exit.
- Keep the storage image and other unrecognized files, only select vmtools(7) own files for deletion.
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.
Recursive mode: remove all child virtual machines too.
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.
Don’t ask any question: accept all confirmation requests and automatically select the default answer in any other situation.
- Default location to store temporary files, by default /tmp.
- Location of user’s configuration files, by default ~/.config.
- Libraries shared by the vmtools project utilities.
- Virtual machine default settings, see vmtools.conf(5).
- User overrides (if cfg_include_userhome is set to “yes”).
- System-wide overrides.
EXIT STATUSThe vmrm utility exits 0 on success, and >0 if an error occurs.
- Example 1:
Delete a single virtual machine:
- Example 2:
Recursively delete all virtual machines located in a directory:
vmrm -r ~/trash/*