Skip to content

Instantly share code, notes, and snippets.

@ArnoutDevos
Created December 7, 2018 10:08
Show Gist options
  • Save ArnoutDevos/46704443f2456ded8da2c3266b216cd4 to your computer and use it in GitHub Desktop.
Save ArnoutDevos/46704443f2456ded8da2c3266b216cd4 to your computer and use it in GitHub Desktop.
command to remove automatically created .ipynb_checkpoints folders and their checkpoints
rm -rf `find -type d -name .ipynb_checkpoints`
@WoodenSwordMaster
Copy link

Sorry, I use Window11. How can use this code.

@kikislater
Copy link

Sorry, I use Window11. How can use this code.

In WSL or Cygwin

@xinxuanliu
Copy link

xinxuanliu commented May 12, 2025

This doesn't delete it, it finds them but don't delete them :

find: illegal option -- t usage: find [-H | -L | -P] [-EXdsx] [-f path] path ... [expression] find [-H | -L | -P] [-EXdsx] -f path [path ...] [expression]

Even though this maybe quite old, I hope my answer can still be helpful to anyone who faces the same problem in the future:

rm -rf `find . -type d -name .ipynb_checkpoints`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment