• Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space
  • Chevereto Support CLST

    Support response

    Support checklist

    • Got a Something went wrong message? Read this guide and provide the actual error. Do not skip this.
    • Confirm that the server meets the System Requirements
    • Check for any available Hotfix - your issue could be already reported/fixed
    • Read documentation - It will be required to Debug and understand Errors for a faster support response

delete images

Run this in your database:

SQL:
UPDATE `chv_images` SET image_expiration_date_gmt='2021-11-26 00:00:00' WHERE image_views<5 AND image_date_gmt < DATE_SUB(NOW(),INTERVAL 1 YEAR);

That will update the expiration date to today for image views < 5 and older than a year. Once the cron runs, it will be progressively removing all the affected images.
 
Run this in your database:

SQL:
UPDATE `chv_images` SET image_expiration_date_gmt='2021-11-26 00:00:00' WHERE image_views<5 AND image_date_gmt < DATE_SUB(NOW(),INTERVAL 1 YEAR);

That will update the expiration date to today for image views < 5 and older than a year. Once the cron runs, it will be progressively removing all the affected images.
will it remove files from server? or only database will clear? Files are stored on server and I want to delete files from server too.
 
To clarify, the MySQL statement that I gave you will trigger the delete expired images functionality on top of the affected images. When running the Cron, the system will ask for any pending expired images to remove and it will proceed to delete the rows (database) and files (server) from the system.
 
To clarify, the MySQL statement that I gave you will trigger the delete expired images functionality on top of the affected images. When running the Cron, the system will ask for any pending expired images to remove and it will proceed to delete the rows (database) and files (server) from the system.
I ran command in sql and ran the cron but images from server was not deleted. sql command ran successfully.
 
It will take several cron runs to remove all the affected images if the range is too big.
 
Back
Top