Solved

need to delete multiple folders from webserver

Posted on 2014-07-31
8
214 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 62

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
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 
LVL 62

Expert Comment

by:gheist
ID: 40233006
what makes you think dreamweaver will never create _notes directories again and again?
0
 
LVL 62

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 62

Expert Comment

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

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
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…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

856 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