# PVE Clean Orphaned LVM

PVE Clean Orphaned LVM is a Proxmox Virtual Environment (PVE) script that scans logical volume manager (LVM) volumes, finds storage no longer attached to any virtual machine (VM) or Linux container (LXC), and prompts. It is open source and self-hosted, installable on Proxmox.

Canonical page: https://ourlocalhost.com/app/6453/pve-clean-orphaned-lvm

## Description

PVE Clean Orphaned LVM is a Proxmox Virtual Environment (PVE) script that scans logical volume manager (LVM) volumes, finds storage no longer attached to any virtual machine (VM) or Linux container (LXC), and prompts users to safely delete unused volumes while excluding system-critical volumes.

## Platform availability

Available on 1 of 10 platforms: Proxmox.

## Links

- Proxmox: https://community-scripts.github.io/ProxmoxVE/scripts?id=clean-orphaned-lvm

## Common questions

### What does the script detect before offering deletion?

It detects LVM volumes that are no longer associated with any VM or LXC container.

### Which volumes are excluded from deletion?

System-critical volumes such as root, swap, and data are excluded.

### Does it prompt before deleting detected orphaned volumes?

Yes, it provides an interactive prompt before deletion.

### Can the script report a volume as orphaned when it is not?

A reported issue says it can show a non-orphan volume as an orphan on Proxmox 8.4.

---
Source: Our Local Host (https://ourlocalhost.com/app/6453/pve-clean-orphaned-lvm), the self-hosted and open-source app directory.
