Open erya777 opened 6 months ago
Can confirm, had the same issue just recently and had to delete unused disks manually in Web UI.
Previous implementations of the disk handling would occasionally get confused which disk is which, resulting in all disks getting detached. Since this issue has been fixed in https://github.com/Telmate/proxmox-api-go/pull/255 we can look into adding a feature to permanently delete detached disks.
@Tinyblargon ,
we can look into adding a feature to permanently delete detached disks.
Are you planning to add this feature? Currently, after some disk modifications add/delete/etc, garbage remains in the form of unused/detached disks and therefore cleaning must be done manually, so, would be very useful and helpful to have automated unused disk deletion.
@maksimsamt eventually yes. As i also maintain the SDK used by this project to connect to proxmox, a lot of my work has been going there. I don't see this feature coming any time soon.
When removing a disk from terraform its being left in "unused disk" state instead of deleting disk from storage. Using provider version 3.0.1-rc1 and proxmox version 8.1 After running following plan the disk is left detached in "Unused Disk 0" slot. Expected behavior is complete disk removal from storage.