Skip to content

This standalone script removes all of the product image associations in Magento 2.4.6. It is useful for when a full catalog wipe and reimport is necessary.

License

Notifications You must be signed in to change notification settings

seanbreeden/m2-remove-all-catalog-images

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

                                                         __                 ______      
                                                        /  |               /      \     
 _____  ____    ______    ______    ______   _______   _$$ |_     ______  /$$$$$$  |    
/     \/    \  /      \  /      \  /      \ /       \ / $$   |   /      \ $$____$$ |    
$$$$$$ $$$$  | $$$$$$  |/$$$$$$  |/$$$$$$  |$$$$$$$  |$$$$$$/   /$$$$$$  | /    $$/     
$$ | $$ | $$ | /    $$ |$$ |  $$ |$$    $$ |$$ |  $$ |  $$ | __ $$ |  $$ |/$$$$$$/      
$$ | $$ | $$ |/$$$$$$$ |$$ \__$$ |$$$$$$$$/ $$ |  $$ |  $$ |/  |$$ \__$$ |$$ |_____     
$$ | $$ | $$ |$$    $$ |$$    $$ |$$       |$$ |  $$ |  $$  $$/ $$    $$/ $$       |    
$$/  $$/  $$/  $$$$$$$/  $$$$$$$ | $$$$$$$/ $$/   $$/    $$$$/   $$$$$$/  $$$$$$$$/     
                        /  \__$$ |                                                      
                        $$    $$/                                                       
                         $$$$$$/                                                        
                                                                                 __  __ 
                                                                                /  |/  |
  ______    ______   _____  ____    ______   __     __  ______          ______  $$ |$$ |
 /      \  /      \ /     \/    \  /      \ /  \   /  |/      \        /      \ $$ |$$ |
/$$$$$$  |/$$$$$$  |$$$$$$ $$$$  |/$$$$$$  |$$  \ /$$//$$$$$$  |       $$$$$$  |$$ |$$ |
$$ |  $$/ $$    $$ |$$ | $$ | $$ |$$ |  $$ | $$  /$$/ $$    $$ |       /    $$ |$$ |$$ |
$$ |      $$$$$$$$/ $$ | $$ | $$ |$$ \__$$ |  $$ $$/  $$$$$$$$/       /$$$$$$$ |$$ |$$ |
$$ |      $$       |$$ | $$ | $$ |$$    $$/    $$$/   $$       |      $$    $$ |$$ |$$ |
$$/        $$$$$$$/ $$/  $$/  $$/  $$$$$$/      $/     $$$$$$$/        $$$$$$$/ $$/ $$/                                                                                     
                       __                __                                             
                      /  |              /  |                                            
  _______   ______   _$$ |_     ______  $$ |  ______    ______                          
 /       | /      \ / $$   |   /      \ $$ | /      \  /      \                         
/$$$$$$$/  $$$$$$  |$$$$$$/    $$$$$$  |$$ |/$$$$$$  |/$$$$$$  |                        
$$ |       /    $$ |  $$ | __  /    $$ |$$ |$$ |  $$ |$$ |  $$ |                        
$$ \_____ /$$$$$$$ |  $$ |/  |/$$$$$$$ |$$ |$$ \__$$ |$$ \__$$ |                        
$$       |$$    $$ |  $$  $$/ $$    $$ |$$ |$$    $$/ $$    $$ |                        
 $$$$$$$/  $$$$$$$/    $$$$/   $$$$$$$/ $$/  $$$$$$/   $$$$$$$ |                        
                                                      /  \__$$ |                        
                                                      $$    $$/                         
                                                       $$$$$$/                          
 __                                                                                     
/  |                                                                                    
$$/  _____  ____    ______    ______    ______    _______                               
/  |/     \/    \  /      \  /      \  /      \  /       |                              
$$ |$$$$$$ $$$$  | $$$$$$  |/$$$$$$  |/$$$$$$  |/$$$$$$$/                               
$$ |$$ | $$ | $$ | /    $$ |$$ |  $$ |$$    $$ |$$      \                               
$$ |$$ | $$ | $$ |/$$$$$$$ |$$ \__$$ |$$$$$$$$/  $$$$$$  |                              
$$ |$$ | $$ | $$ |$$    $$ |$$    $$ |$$       |/     $$/                               
$$/ $$/  $$/  $$/  $$$$$$$/  $$$$$$$ | $$$$$$$/ $$$$$$$/                                
                            /  \__$$ |                                                  
                            $$    $$/                                                   
                             $$$$$$/                                                    

Magento 2 Remove All Catalog Images

This script will disassociate all product catalog media gallery images. After it runs, delete /pub/media/catalog/product to completely erase all product images.

About

This standalone script removes all of the product image associations in Magento 2.4.6. It is useful for when a full catalog wipe and reimport is necessary.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages