mirror of
https://github.com/kneutron/ansitest.git
synced 2025-01-30 05:02:54 +08:00
Add files via upload
This commit is contained in:
parent
4cfdfe8eb0
commit
a535b9a133
19
proxmox/proxmox-destroy-ctr.sh
Normal file
19
proxmox/proxmox-destroy-ctr.sh
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# May work even if the ctr storage is no longer defined
|
||||||
|
# REF: https://forum.proxmox.com/threads/how-to-delete-a-vm-or-container-that-has-no-storage-and-no-or-missing-storage-pool.87483/
|
||||||
|
|
||||||
|
# Requires 1 arg, number of LXC ctr to destroy
|
||||||
|
|
||||||
|
lxc-ls --fancy
|
||||||
|
|
||||||
|
exit; # comment me if you're serious, I take NO RESPONSIBILITY for data loss!
|
||||||
|
|
||||||
|
|
||||||
|
echo "Press Enter to proceed with destroy or ^C to back out!"
|
||||||
|
read
|
||||||
|
|
||||||
|
set -x
|
||||||
|
time lxc-destroy -n $1
|
||||||
|
|
||||||
|
lxc-ls --fancy
|
Loading…
x
Reference in New Issue
Block a user