The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

delete all "_notes" folders and contents

Discussion in 'General Discussion' started by devellion, Jan 23, 2006.

  1. devellion

    devellion Active Member

    Joined:
    Feb 9, 2005
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    Can anyone show me how I can delete all folders named "_notes" on my server and the contents using putty.

    Dreamweaver has created thousands of _notes folders with xml inside.

    If possible it would be nice if it would ask before it deletes each one. (maybe lol)
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Various ways, and most are risky. Somthing like:

    find /home -name _notes | xargs -p rm -Rfv

    But you might want to test it first:

    find /home -name _notes -type d | xargs ls

    Do it at your own risk :eek:
     
  3. devellion

    devellion Active Member

    Joined:
    Feb 9, 2005
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    Thanks!! :P I'll test it first ;)
     
Loading...

Share This Page