Clear old object versions


I am using 4.5 pimcore version. And this has lot of old version files ‘website/var/versions/object’. Its almost 350GB data. And in ‘versions’ table has 22994766 records. So I cant run with this command to clean ‘php pimcore/cli/console.php maintenance’ .

Therefore Can we delete simple versions data manually from ‘website/var/versions/object’ and truncate ‘versions’ table? Please suggest and help me


Yes, you can just truncate the table and delete the version files IF you don’t need them anymore. If you don’t need them, you can disable versions in the system settings as well.

Yes you can Truncate the table and Delete the version files.
You might need to change read-write permissions on the folder if anything breaks.