katydidknot for Focused Posted on Jan 21, 2021 • Edited on Sep 11, 2021 • Originally published at focusedlabs.io How to quickly delete multiple jobs in kubernetes #devops #womenintech #kubernetes Kube jobs running wild? To delete successful jobs: kubectl delete jobs --field-selector status.successful=1 Enter fullscreen mode Exit fullscreen mode To delete failed or long running jobs kubectl delete jobs --field-selector status.successful=0 Enter fullscreen mode Exit fullscreen mode Get rid of them all! Top comments (3) Subscribe Submit Preview Dismiss Collapse Expand Ivan Nudzik Ivan Nudzik Ivan Nudzik Follow Work Polyhistor Joined Sep 12, 2020 • Apr 14 '21 Dropdown menu Copy link Hide But this delete successful ones, not failed. Collapse Expand katydidknot katydidknot katydidknot Follow The only bugs I squash are software ones. ๐๐ท๐๐ฆ๐ Education Webster University, Georgia Tech Work Software Dev at Focused Labs Joined Jul 15, 2020 • Jun 23 '21 Dropdown menu Copy link Hide You are correct- bad copy pasta...OOPS. Updating now Collapse Expand silver lee silver lee silver lee Follow What A Wonderful World! Education POSTECH Work CTO Joined Feb 22, 2022 • Feb 15 '23 Dropdown menu Copy link Hide work well for pending jobs! Code of Conduct • Report abuse
Top comments (3)
But this delete successful ones, not failed.
You are correct- bad copy pasta...OOPS.
Updating now
work well for pending jobs!