Flush Image Styles with Drush

Last modified: 
Friday, August 14th, 2015
Topics: 
drushimages

You can flush cached image style derivatives using the drush image-flush command.

Select from a list of available images (default)

drush image-flush

Outputs a list of numbered options like this:

$ drush image-flush
Choose a style to flush.
 [0]   :  Cancel                                 
 [1]   :  all                                    
 [2]   :  flexslider_full                        
 [3]   :  flexslider_thumbnail                   
 [4]   :  thumbnail                              
 [5]   :  medium                                 
 [6]   :  large                                  
 [7]   :  linkit_thumb                           
 [8]   :  media_thumbnail                        
 [9]   :  sliderstyles                           
 [10]  :  headers            

Flush a specific image style by providing a machine name

drush image-flush flexislider_full

Flush all images styles by using the --all flag

drush image-flush --all


The operator of this site makes no claims, promises, or guarantees of the accuracy, completeness, originality, uniqueness, or even general adequacy of the contents herein and expressly disclaims liability for errors and omissions in the contents of this website.