ppio.volume.destroy() 按 ID 永久删除 Volume。删除 Volume 不可逆——其数据无法恢复。
删除 Volume
ppio.volume.destroy() 返回布尔值:删除成功返回 true;未找到该 ID 对应的 Volume 时返回 false。
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
ppio.volume.destroy() 按 ID 永久删除 Volume。删除 Volume 不可逆——其数据无法恢复。
ppio.volume.destroy() 返回布尔值:删除成功返回 true;未找到该 ID 对应的 Volume 时返回 false。
from ppio_sandbox import PPIO
ppio = PPIO()
deleted = ppio.volume.destroy("vol_123")
if deleted:
print("Volume deleted")
else:
print("Volume not found")
import { PPIO } from 'ppio-sandbox'
const ppio = new PPIO()
const deleted = await ppio.volume.destroy('vol_123')
if (deleted) {
console.log('Volume deleted')
} else {
console.log('Volume not found')
}
# 删除一个或多个 Volume(别名:volume rm);-y 跳过确认提示
ppio volume delete <volume_id>
ppio volume delete <volume_id> -y
# 删除多个 Volume
ppio volume delete <volume_id_1> <volume_id_2>