How to remove all .htaccess files recursively

The following command recursively removes all .htaccess files from the current directory and all subdirectories:

Please note that the files are deleted directly and not moved to the trash bin, so consider making a backup!

remove_htaccess.sh
find . -name ".htaccess" -exec rm -v {} \;

 

 


Check out similar posts by category: Linux