Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uploaded media check / cleanup #431

Open
rlskoeser opened this issue Dec 20, 2023 · 0 comments
Open

uploaded media check / cleanup #431

rlskoeser opened this issue Dec 20, 2023 · 0 comments

Comments

@rlskoeser
Copy link
Contributor

We have a sizable amount of data in our upload folder, would be good to have a way to prune content that is no longer used/needed (or was uploaded and never used).

Wagtail images have a way to check where they are used - see wagtail/bakerydemo#114 (slightly out of date) and wagtail docs on reference groups. Note that this doesn't report on images used within streamfields, although I think we generally don't allow that.

We would also need to query for other objects that link to images directly (projects, profile pages, events) since I don't think they're set up to count as a wagtail reference.

Maybe a manage command that could report on and optionally clean up unused images.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant