Answer the question
In order to leave comments, you need to log in
How to create a file deletion script in linux?
Greetings.
There are a lot of filenames that need to be removed. Search one by one and delete via FileZilla Client is not an option.
Title examples:
sites/default/files/inline/images/tradesanta_ceny.png
sites/default/files/inline/images/zb_exchange_image1_2.png
sites/default/files/inline/images/zb_exchange_image_1.png
Answer the question
In order to leave comments, you need to log in
find sites/default/files/inline/images/ -type f -iname "*.png" -delete
Removing all png
rm -rfv sites/default/files/inline/images/*.png
Removing by mask indicating part of the file name
find sites/default/files/inline/images/ -name '*zb_exchange*' -delete;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question