Uninstalling does not make sense with an operating system. You simply overwrite it with another operating system. You can wipe the disk drive first if you want, with something like GParted Live or using gdisk
on the Proxmxo console to erase the partitioning. But that can also be done from within the installers of Ubuntu or Debian.