Solved

need to delete multiple folders from webserver

Posted on 2014-07-31
8
218 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

 
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

Flexible connectivity for any environment

The KE6900 series can extend and deploy computers with high definition displays across multiple stations in a variety of applications that suit any environment. Expand computer use to stations across multiple rooms with dynamic access.

Question has a verified solution.

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

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

730 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