Skip to content

Instantly share code, notes, and snippets.

View seitosan's full-sized avatar

Valentin Mariette seitosan

  • Armis
  • Paris
  • 20:10 (UTC -12:00)
View GitHub Profile
@seitosan
seitosan / CleanNs.ps1
Created January 22, 2021 16:15
Remove all ressources on a namespace
param (
[string] $namespace="default",
[bool] $delete=0
)
$types=kubectl.exe api-resources --verbs=list --namespaced -o name
echo $namespace
foreach($type in $types)
{
echo $type; echo "###";
kubectl.exe get $type -n $namespace ;