I would not be doing it that way.by manually deleting the corresponding folder in the storage images directory.
The correct way from CLI to delete an unreferenced disk/s would be:
Code:
qm set <vmid> --delete unused<n>
# You could also with one command both unlink & delete the disk with:
qm disk unlink <vmid> --force <boolean> --idlist <string>
Not sure what you mean by this, but AFAIK, pvesm which is the PVE Storage Manager would use the following to completely delete a volume:Pvesm uses "copy" and "move" as subcommands
Code:
pvesm free <volume> [OPTIONS]
#example from below docs to remove an image
pvesm free local:100/vm-100-disk10.raw
as shown in the pvesm manpage.