Activity Stream
48,167 MEMBERS
61081 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Page 1 of 3 123 LastLast
Results 1 to 10 of 21
  1.     
    #1
    Member

    Default Delete 1000 various files from a folder in 1 go

    Hello,

    Does anyone have a method to delete a given 1000 file names, from a specific folder at one go?

    is it possible via SSH or even if a script that can do that.

    Please share.

    Thanks
    Sponge Bob Reviewed by Sponge Bob on . Delete 1000 various files from a folder in 1 go Hello, Does anyone have a method to delete a given 1000 file names, from a specific folder at one go? is it possible via SSH or even if a script that can do that. Please share. Thanks Rating: 5


  2.   Sponsored Links

  3.     
    #2
    Respected Member
    Website's:
    DL4Everything.com Soft2050.in
    Why not just delete the whole folder through ftp ?

  4.     
    #3
    Member
    Website's:
    CSOffensive.com
    ^ folder may contain other files which he dont want to delete
    Counter Strike : Global Offensive Forum

  5.     
    #4
    Member
    yep the folder has over 10,000

    i need to delete 1000 specified ones


  6.     
    #5
    Respected Member
    Window or linux? How do you determine which files or are they always the same name?

  7.     
    #6
    Member
    Website's:
    Elite.SO Defendos.com Motionite.com
    Please explain it a bit more, I didn't got it

    Defendos BETA3 Released! Thread - Official Website

  8.     
    #7
    Member
    For listing that need files
    find /your/folder/location -name '*.html' -exec ls -l {} \;


    For removing that files
    find /your/folder/location -name '*.html' -exec rm -f {} \;


    First list them see if you are getting correct ones then delete them with second command, there are other lots of ways like

    List file names
    grep -rl "match" /folder/location
    Delete them
    grep -rl "match" /folder/location | xargs rm



    Hope it helps

  9.     
    #8
    Member
    you can use shell script to rm the files if you have the list of filenames with you
    -: Free Premium Account Giveaway! :-

  10.     
    #9
    Member
    Hey its on cPanel.

    I do have a list of files with me that i want removed, please give me the exact code.

    Thanks


  11.     
    #10
    Member
    how the filename starts like is it have common name start?

Page 1 of 3 123 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Delete specific file in each folder
    By Ruriko in forum Technical Help Desk Support
    Replies: 6
    Last Post: 6th Oct 2012, 01:05 AM
  2. All Move Files to folder with same name on linux?
    By robinex in forum Technical Help Desk Support
    Replies: 2
    Last Post: 13th Jun 2012, 08:48 PM
  3. Sborg custom files from folder Help
    By Naughty Devil in forum General Discussion
    Replies: 5
    Last Post: 28th May 2011, 06:38 PM
  4. Replies: 10
    Last Post: 13th Jul 2010, 04:49 PM
  5. [linux]Rar files, upload to RS & HF then delete the files
    By Snell in forum Tutorials and Guides
    Replies: 8
    Last Post: 21st Jun 2010, 07:01 AM

Tags for this Thread

BE SOCIAL