lvremove(8)
Remove a logical volume from a volume group.
Synopsis
lvremove [OPTION]... LogicalVolume [LogicalVolume]...Description
lvremove removes one or more logical volumes from a volume group. The logical volume must not be in use (mounted or opened) when removed. This operation is destructive and cannot be undone without backups.
By default, lvremove will prompt for confirmation before removing a logical volume. Use the -f flag to force removal without prompting.
Common options
| Flag | What it does |
|---|---|
-f, --force | Force removal without prompting for confirmation |
-y, --yes | Answer 'yes' to all prompts automatically |
-S, --select | Select logical volumes to remove based on criteria |
--noudevsync | Disable synchronization with udev |
-v, --verbose | Display verbose information during removal |
--nosync | Do not synchronize metadata after removal |
-A, --autobackup | Automatically backup metadata before removal |
Examples
Remove the logical volume 'lv_data' from volume group 'vg0' with confirmation prompt
lvremove /dev/vg0/lv_dataForce removal of logical volume without prompting for confirmation
lvremove -f /dev/vg0/lv_dataRemove multiple logical volumes at once from the same volume group
lvremove -f /dev/vg0/lv_data /dev/vg0/lv_backupForcefully remove 'lv_temp' and answer yes to all prompts automatically
lvremove -f -y vg0/lv_tempRemove a logical volume with verbose output showing detailed progress
lvremove -v /dev/vg1/snapshotsRemove all logical volumes matching the pattern 'temp' from volume group vg0
lvremove -S 'lvname=~temp' vg0