2017-09-19 14:47:10 +00:00
|
|
|
---
|
2020-02-06 23:45:31 +00:00
|
|
|
layout: docs
|
|
|
|
page_title: 'Commands: namespace delete'
|
|
|
|
sidebar_title: delete
|
|
|
|
description: |
|
2017-09-19 14:47:10 +00:00
|
|
|
The namespace delete command is used to delete a namespace.
|
|
|
|
---
|
|
|
|
|
|
|
|
# Command: namespace delete
|
|
|
|
|
|
|
|
The `namespace delete` command is used delete a namespace.
|
|
|
|
|
2020-10-22 21:59:40 +00:00
|
|
|
~> Namespaces are open source in Nomad 1.0. Namespaces were Enterprise-only
|
|
|
|
when introduced in Nomad 0.7.
|
2017-09-19 14:47:10 +00:00
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
2019-10-22 13:44:00 +00:00
|
|
|
```plaintext
|
2017-09-19 14:47:10 +00:00
|
|
|
nomad namespace delete [options] <namespace>
|
|
|
|
```
|
|
|
|
|
|
|
|
The `namespace delete` command requires the name of the namespace to be deleted.
|
|
|
|
|
2020-11-19 21:38:08 +00:00
|
|
|
If ACLs are enabled, this command requires a management ACL token.
|
|
|
|
|
2017-09-19 14:47:10 +00:00
|
|
|
## General Options
|
|
|
|
|
2020-11-19 18:02:48 +00:00
|
|
|
@include 'general_options_no_namespace.mdx'
|
2017-09-19 14:47:10 +00:00
|
|
|
|
|
|
|
## Examples
|
|
|
|
|
|
|
|
Delete a namespace
|
|
|
|
|
2020-05-18 20:53:06 +00:00
|
|
|
```shell-session
|
|
|
|
$ nomad namespace delete api-prod
|
2017-09-19 14:47:10 +00:00
|
|
|
Successfully deleted namespace "api-prod"!
|
|
|
|
```
|