How to delete AVIF images from your website

If you need to delete the AVIF images from your website, you have a few different options, but to start, you may need to know how to locate your AVIF images.

AVIF images will be located in the same folder in which the original format version of the images is located. So if the original format image is located at wp-content/uploads/2024/02/image.jpg, then its AVIF version will be at wp-content/uploads/2024/02/image.jpg.avif

Delete AVIF images using an FTP program

AVIF images will be located in the same folder in which the original format version of the images is located. So if the original format image is located at wp-content/uploads/2024/02/image.jpg, then its WebP version will be at wp-content/uploads/2024/02/image.jpg.avif

You can delete AVIF versions of images by connecting directly to the files on your website’s server using an FTP program. Using an FTP program, you will be able to delete your AVIF files individually or in larger groups at the same time.

Depending on which FTP program you are using, you can search for .avif or *.avif, which will return all AVIF images and you can then quickly select them all and delete. But be careful, as this would also return images or files that just have .avif somewhere in their name or URL.

Delete AVIF images using an SSH / Terminal command

If you are able to connect to your website’s server via SSH, you can also use the following command to quickly delete all your AVIF images. It would be good to fully back up your site before doing this to be safe.

find . -name “*.avif” -type f -delete

Delete AVIF images by restoring to original

The final option you have for deleting your AVIF images is to first go to your Imagify plugin settings page and disable the “Create AVIF versions of images” option. Once that has been done, if you restore all your images to original, the AVIF versions will automatically be deleted in the process. Since the “Create AVIF versions of images” has been disabled, you could then re-optimize your images and the AVIF versions won’t be generated.

Was this guide helpful? :) Great! Glat we could help! Thank's for your feedback
Great! Glat we could help!

Your feedback has been sent to our team We value every bit of feedback we receive as it helps us to improve our products and services. Thank you for your time.