Files
nomad/website/content/docs/commands/namespace/delete.mdx
Aimee Ukasick dae496e427 Docs: SEO front matter description for search: commands section (#25175)
* Enhance front matter description for search

* acl section

* alloc section

* config section

* deployment section

* eval section

* job section

* license section

* namespace section

* node section

* node pool section

* operator section

* plugin section

* quota section

* recommendation section

* scaling section

* sentinel section

* server section

* service section

* setup section

* system section

* tls section

* var section

* volume section

* change reference to command reference

* Apply suggestions from code review

Co-authored-by: Jeff Boruszak <104028618+boruszak@users.noreply.github.com>

---------

Co-authored-by: Jeff Boruszak <104028618+boruszak@users.noreply.github.com>
2025-03-19 12:02:02 -05:00

45 lines
1.1 KiB
Plaintext

---
layout: docs
page_title: 'nomad namespace delete command reference'
description: |
The `nomad namespace delete` command deletes a namespace.
---
# `nomad namespace delete` command reference
The `namespace delete` command is used delete a namespace.
<Tip>
Visit the <a href="https://developer.hashicorp.com/nomad/tutorials/manage-clusters/namespaces">
Nomad Namespaces tutorial
</a> for more information.
</Tip>
## Usage
```plaintext
nomad namespace delete [options] <namespace>
```
The `namespace delete` command requires the name of the namespace to be deleted.
If ACLs are enabled, this command requires a management ACL token.
You cannot delete a namespace that has non-terminal jobs or allocations,
existing CSI volumes or variables attached to it, or quotas associated with it.
In federated clusters, you cannot delete a namespace that has any of the above
in any of the federated regions.
## General options
@include 'general_options_no_namespace.mdx'
## Examples
Delete a namespace
```shell-session
$ nomad namespace delete api-prod
Successfully deleted namespace "api-prod"!
```