[IMPLEMENTED] Delete assets permanently

Hello,

By mistake, I have uploaded so many assets (112K) with batch processing using client library and it increased asset size to 20GB.
And when I came to know about this mess, I deleted all those images with client library with hoping it will free up my space. But when I deleted all unwanted assets, still my asset size was showing the same size(20GB).

FYI : We have Self hosted Solution.

Please let me know what I need to do to free up my space.

Thanks,
Creative Mind

Hi,

it is by design. Storage is so cheap and available with S3 and so on that I actually do not delete assets.

Hello,

How would I find and delete the files manually then (Docker setup)?

You should never ever store the files in Docker. Please mount them: https://github.com/Squidex/squidex-docker/blob/master/standalone/docker-compose.yml#L33

It is mounted it to a persistent volume. Still what’s the best way to identify the non-referenced files on the volume?

The best approach is just to wait a few hours because I have already a PR in the pipeline :wink:

It has been implemented with dev-5740 flag (which might not be built yet, when you read this answer).

Just turn the setting on with https://github.com/Squidex/squidex/blob/master/backend/src/Squidex/appsettings.json#L310

ASSETS__DELTEPERMANENT=true

Will also work for your already deleted assets.

BUILD STATUS: https://build.squidex.io/Squidex/squidex/5740

Okay, Thank you so much for quick response!

This topic was automatically closed after 2 days. New replies are no longer allowed.