Article 6DYRF On a server how can I delete all folders with "photos" in their folder name?

On a server how can I delete all folders with "photos" in their folder name?

by
DaveyMames
from LinuxQuestions.org on (#6DYRF)
Here's a linux script for my shared hosting provider that worked well. It deletes subfolders with things like "photos" in their folder names:

Code:find "$HOME/private/rtorrent/data/zTransfersToGoogleDrive1" -maxdepth 100 -type d \( -iname "*image*" -o -iname "*photo*" -o -iname "*pic*" -o -iname "*contact*" -o -iname "*sheet*" -o -iname "*cover*" -o -iname "*gif*" \) -exec rclone purge "{}" \;I've now moved to a dedicated server so I thought all I would need to do is change the underlined text to my new directory as follows:

Code:home/daveymames/torrents/rtorrent/zTransfersToServeDrive1However now when I run the script, it doesn't delete anything.

What is the correct command that I should be running?
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments