Tested On Ubuntu | FreeBSD
CASE 1
I will find & delete all files .htaccess inside folder “/usr/local/www/apache24/data/v1/wp-content/uploads”
STEP 1 – Go to folder
# cd "some folder"
example :
root@freebsd:/# cd /usr/local/www/apache24/data/v1/wp-content/uploads
STEP 2 – Find & Delete file inside folder “/usr/local/www/apache24/data/v1/wp-content/uploads” with this command
root@freebsd:/# find . -type f -name "FileName/Extention" -delete
Example:
root@freebsd:/usr/local/www/apache24/data/v1/wp-content/uploads # find . -type f -name "*.htaccess" -delete