M
M
Motorkaa2017-02-22 14:05:20
linux
Motorkaa, 2017-02-22 14:05:20

How to delete files from hosting by list?

There is a list of file addresses (about 5 thousand lines), each with a new line.
You need to remove all files from this list. Manually 30 files per hour, so not cool. There are options through the console or something else?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
2
2bereal, 2017-02-22
@Motorkaa

$filearray = array(
  'www/file/index1.php',
);

foreach($filearray as $file){
  unlink($file);
}

V
vaut, 2017-02-22
@vaut

xargs should help you write the script.

J
Justin Bieber, 2017-02-22
@JustinBieber

php script run or ask technical support to clean it

S
Sergey, 2017-02-22
@begemot_sun

stackoverflow.com/questions/5142429/unix-how-to-de...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question