https://github.com/gui/kubectl-purge-namespace
Delete all resources out of a given namespace.
https://github.com/gui/kubectl-purge-namespace
Last synced: about 1 year ago
JSON representation
Delete all resources out of a given namespace.
- Host: GitHub
- URL: https://github.com/gui/kubectl-purge-namespace
- Owner: GUI
- License: mit
- Created: 2021-01-08T18:17:26.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2022-12-02T16:14:11.000Z (over 3 years ago)
- Last Synced: 2025-02-12T23:44:24.597Z (over 1 year ago)
- Language: Shell
- Size: 6.84 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# kubectl-purge-namespace
Delete all resources out of a given namespace. Deletes the following resource types:
- `configmap`
- `deployment.apps`
- `ingress`
- `job`
- `pod`
- `pvc`
- `secret`
- `service`
- `statefulset.apps`
## Usage
Pass the namespace to be deleted:
```sh
kubectl-purge-namespace your-namespace-to-purge
```
You will see a list of resources that will be deleted and must confirm before any deletes occur.
Multiple namespaces can be space delimited:
```sh
kubectl-purge-namespace namespace-a namespace-b namespace-c
```