Solved

need to delete multiple folders from webserver

Posted on 2014-07-31
8
205 Views
Last Modified: 2014-08-01
On my apache webserver I was using Dreamweaver and uploaded all the _notes folders. They are causing problems in my ZenCart shopping cart software and so now I need to delete them all. The problem is there is over 300.

Is there some sort of script I could run that would look though all the folders and delete every folder called _notes?

Thank you,
Jacob Bushnell
0
Comment
Question by:JakeBushnell
  • 4
  • 2
  • 2
8 Comments
 
LVL 40

Expert Comment

by:omarfarid
ID: 40232971
you can run below command from command prompt

cd /path

find . -name _notes -exec rm -r {} \;
0
 
LVL 61

Expert Comment

by:gheist
ID: 40232973
Yes
LocationMatch </_notes/>
 Deny...
0
 
LVL 40

Accepted Solution

by:
omarfarid earned 500 total points
ID: 40232975
or better run

cd /path

find . -name  _notes -exec rm -r -f {} \;
0
 
LVL 61

Expert Comment

by:gheist
ID: 40233006
what makes you think dreamweaver will never create _notes directories again and again?
0
Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

 
LVL 61

Expert Comment

by:gheist
ID: 40233073
and _mm and Templates and _baks and .LCK files and .lck files and and and ...
0
 
LVL 2

Author Closing Comment

by:JakeBushnell
ID: 40233170
Awesome! that just saved me hours of tedious work.
0
 
LVL 2

Author Comment

by:JakeBushnell
ID: 40233176
@gheist: Once you turn off the design notes feature in BOTH of the two places it no longer creates them. What often creates confusion is users often only turn it off in the Design Notes area and forget to turn off the Maintain Design Notes under the FTP info area as well.
0
 
LVL 61

Expert Comment

by:gheist
ID: 40233613
Yes, but it does not delete them either....
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now