Announcement Banner

pittperson

updated

18 years ago

P

pittperson

96 Posts

0

637

February 9th, 2009 12:00

Delete ALL files from one share

Is there a quick an easy way to delete all files which resided on a single share?

For example:

Test File System
|___Share1
|___Share2

I want to completely delete Share2 and all of its files without losing Share1 or deleting the Test File System.

Thanks,
Chris
  • nandas

    6 Operator

    •

    1473 Posts

    306

    0

    Posted February 9th, 2009 13:00

    You need to mount the file system on the control station and navigate to the right path to do it on the control station. You can follow normal mount procedure (adding control station IP to the root hosts) - or else you may already know another tricky way to do so by mounting on the slot - I can not say anything more :). Although this is not recommended - but if you are 100% confident you can use it on your own risk.

    My 2 cents:)
    Sandip
  • Rainer_EMC

    6 Operator

    •

    8645 Posts

    306

    1

    Posted February 9th, 2009 13:00

    no, you need to do that from a CIFS or NFS client
  • pittperson

    96 Posts

    306

    0

    Posted February 9th, 2009 13:00

    Ok... how about sudo rm -r * from the CLI of the control station?
  • Rainer_EMC

    6 Operator

    •

    8645 Posts

    306

    0

    Posted February 9th, 2009 13:00

    dont expect miracles though - this is just a normal NFS mount over the internal network probably running at 100MBit
    chances are an external NFS or CIFS GBit client would be faster
  • pittperson

    96 Posts

    306

    0

    Posted February 9th, 2009 13:00

    Perfect! Tricky way it is..

    Thanks,
    Chris
  • nandas

    6 Operator

    •

    1473 Posts

    306

    0

    Posted February 9th, 2009 13:00

    One more point, don't forget to delete any CIFS share or NFS export, if at all exists, on that folder or any subfolder under it.

    Thanks again,
    Sandip