Skip to content

Instantly share code, notes, and snippets.

@jarulsamy
Last active October 10, 2023 13:23
Show Gist options
  • Save jarulsamy/c36660f965fcfa64f3a5eba1b50ec624 to your computer and use it in GitHub Desktop.
Save jarulsamy/c36660f965fcfa64f3a5eba1b50ec624 to your computer and use it in GitHub Desktop.
Cleanup Calico
#!/usr/bin/env bash
set -x
ip route flush proto bird
ip link list | grep cali | awk '{print $2}' | cut -c 1-15 | xargs -I {} ip link delete {}
rm -rf /etc/cni/net.d/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment