Delete subfolders by name via bash

Linux OSX Bash

Why do I constantly forget this?

First check...

find -type d -name venv -prune

Nuke em...

find -type d -name venv -prune -exec rm -rf {} \;

From: https://stackoverflow.com/questions/13032701/how-to-remove-folders-with-a-certain-name

© 2024 Code0x378