Files
nomad/website/content/docs/commands/volume/claim-delete.mdx
Aimee Ukasick 23fd87d9c9 Docs: Commands section move "General options" to page bottom (#26001)
* sectionless files plus acl section

* alloc section

* config, deployment sections

* job section

* licence, namespace

* node, node-pool

* operator

* plugin, quota, recommendation

* scaling, sentinel, server, service, system, var, volume

* Add "ENT" label to left nav for enterprise commands

* job tag break into separate folder and files; update options header
2025-06-12 14:31:38 -05:00

53 lines
1.6 KiB
Plaintext

---
layout: docs
page_title: 'nomad volume claim delete command reference'
description: |
The `nomad volume claim delete` command deletes a task group host volume claim.
---
# `nomad volume claim delete` command reference
The `volume claim delete` command deletes a task group host volume claim.
[Stateful deployments][stateful deployments] use these claims.
## Usage
```plaintext
nomad volume claim delete [options] <claim_id>
```
This command accepts claim ID or prefix as the sole argument. The command
deletes the claim if there is an exact match based on the provided claim
ID or prefix, Otherwise, the command displays a list of matching claims and
information.
When ACLs are enabled, this command requires a token with the
`host-volume-write` capability in the volume's namespace.
## Options
- `-y`: Automatically answers "yes" to all the questions, making the deletion
non-interactive. Defaults to "false."
## Example
List all volumes.
```shell-session
$ nomad volume claim delete 3f25be9a
If you delete a volume claim, the allocation that uses this claim to "stick"
to a particular volume ID will no longer use it upon its next reschedule or
migration. The deployment of the task group the allocation runs will still
claim another feasible volume ID during reschedule or replacement.
[?] Are you sure you want to delete task group host volume claim 3f25be9a? [Y/n]
Task group host volume claim 3f25be9a-a2ee-3d7f-c248-45099fd54939 successfully deleted
```
## General options
@include 'general_options.mdx'
[stateful deployments]: /nomad/docs/concepts/stateful-deployments