Author Topic: Question on deleting a bunch of files.  (Read 1638 times)

0 Members and 1 Guest are viewing this topic.

EMOKDOOM

  • Guest
Question on deleting a bunch of files.
« on: March 15, 2013, 09:19:20 pm »
I downloaded a library torrent and the OP, who was the only seeder at %100, bailed on everyone at around %99.

It's %1 of 40+ gigs in data that's all .pdfs and html files; so there's quite a few things taking up space. I got the list of every thing that was never finished downloading and i want to get rid of them. It's 201 things and I’d rather not do it manually. So is there a way or a code to slap into terminal to remove all of them?

The list has all the name paths of the files so that should help.

Offline Kulverstukas

  • Administrator
  • Zeus
  • *
  • Posts: 6627
  • Cookies: 542
  • Fascist dictator
    • View Profile
    • My blog
Re: Question on deleting a bunch of files.
« Reply #1 on: March 15, 2013, 09:34:58 pm »
ofcourse, put your list of files in a text file, make a quick python script to read one by one and remove the files.
Would be like 10 lines with python... (ok maybe more but you get the point :D)

EMOKDOOM

  • Guest
Re: Question on deleting a bunch of files.
« Reply #2 on: March 15, 2013, 09:51:58 pm »
Yeah i figured. Thing is i never learned how to import files or execute commands outside of the IDLE; still learning.

Thanks though, I’m looking at them manually. A lot of them are in the same folder and some of them are not too useful so I’m just deleting the folder.

Offline Xtatics

  • Serf
  • *
  • Posts: 47
  • Cookies: 0
    • View Profile
Re: Question on deleting a bunch of files.
« Reply #3 on: March 30, 2013, 04:57:06 am »
Yeah i figured. Thing is i never learned how to import files or execute commands outside of the IDLE; still learning.

Thanks though, I’m looking at them manually. A lot of them are in the same folder and some of them are not too useful so I’m just deleting the folder.
Is this Linux or Windows? Linux just take your list and rm -rf $(<list) and you're done.
I play the role of a human on earth.

Offline proxx

  • Avatarception
  • Global Moderator
  • Titan
  • *
  • Posts: 2803
  • Cookies: 256
  • ФФФ
    • View Profile
Re: Question on deleting a bunch of files.
« Reply #4 on: March 30, 2013, 10:26:03 am »
Is this Linux or Windows? Linux just take your list and rm -rf $(<list) and you're done.

Thats kinda unsafe.
I would suggest going inside the directory and use: rm *.pdf
That way you dont risk doing a lot of damage.
rm -rf should never be suggested to unexperienced users imo.
Wtf where you thinking with that signature? - Phage.
This was another little experiment *evillaughter - Proxx.
Evilception... - Phage