> ## Documentation Index
> Fetch the complete documentation index at: https://ppio.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# 删除 Volume

使用 `ppio.volume.destroy()` 按 ID 永久删除 Volume。删除 Volume 不可逆——其数据无法恢复。

<Warning>
  **警告：** 销毁 Volume 会永久删除该 Volume 及其保存的所有数据。此操作无法撤销。
</Warning>

## 删除 Volume

`ppio.volume.destroy()` 返回布尔值：删除成功返回 `true`；未找到该 ID 对应的 Volume 时返回 `false`。

<CodeGroup>
  ```python Python theme={null}
  from ppio_sandbox import PPIO

  ppio = PPIO()

  deleted = ppio.volume.destroy("vol_123")
  if deleted:
      print("Volume deleted")
  else:
      print("Volume not found")
  ```

  ```typescript JavaScript & TypeScript theme={null}
  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')
  }
  ```

  ```bash CLI theme={null}
  # 删除一个或多个 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>
  ```
</CodeGroup>
