# delete

Delete one or more volume(s)

```
Usage: pi delete volumes VOLUME [OPTIONS]

Delete volume(s)

          -e, --access-key                API access key
          -k, --secret-key                API secret key
          -r, --region                    Region name, default: gcp-us-central1
          -u, --user                      Username
          --all=false                     Delete all volumes
```

```bash
$ pi delete volumes vol1 vol2
volume "vol1" deleted
volume "vol2" deleted
```

> If the volume is used by a pod, it can not be deleted.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://hyperhq.gitbook.io/pi-docs/reference/cli/volume/delete.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
