$linuxjunkies
>

lvremove(8)

Remove a logical volume from a volume group.

UbuntuDebianFedoraArch

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

FlagWhat it does
-f, --forceForce removal without prompting for confirmation
-y, --yesAnswer 'yes' to all prompts automatically
-S, --selectSelect logical volumes to remove based on criteria
--noudevsyncDisable synchronization with udev
-v, --verboseDisplay verbose information during removal
--nosyncDo not synchronize metadata after removal
-A, --autobackupAutomatically backup metadata before removal

Examples

Remove the logical volume 'lv_data' from volume group 'vg0' with confirmation prompt

lvremove /dev/vg0/lv_data

Force removal of logical volume without prompting for confirmation

lvremove -f /dev/vg0/lv_data

Remove multiple logical volumes at once from the same volume group

lvremove -f /dev/vg0/lv_data /dev/vg0/lv_backup

Forcefully remove 'lv_temp' and answer yes to all prompts automatically

lvremove -f -y vg0/lv_temp

Remove a logical volume with verbose output showing detailed progress

lvremove -v /dev/vg1/snapshots

Remove all logical volumes matching the pattern 'temp' from volume group vg0

lvremove -S 'lvname=~temp' vg0

Related commands