Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
51
rated 0 times [  51] [ 0]  / answers: 1 / hits: 212745  / 2 Years ago, sun, june 26, 2022, 2:59:55

I changed my wordpress theme. The older one created so much images on server. My new theme doesnt need them, so I want to remove all. How can I do that?



For example:

Default image: 12_angry_men_lone_holdout.jpg



I want to delete:



12_angry_men_lone_holdout-290x166.jpg
12_angry_men_lone_holdout-700x300.jpg
12_angry_men_lone_holdout-50x50.jpg


Using Digitalocean, Ubuntu 13.10.


More From » 13.10

 Answers
6

If they are in the same folder use * wildcard to achieve that:



rm *text*


Where text is string that filename contains.


[#26181] Sunday, June 26, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
arbaour

Total Points: 346
Total Questions: 115
Total Answers: 105

Location: Oman
Member since Wed, Apr 12, 2023
1 Year ago
;