sanity-plugin-media icon indicating copy to clipboard operation
sanity-plugin-media copied to clipboard

"Not in Use" filter

Open schellenbergk opened this issue 1 year ago • 5 comments

Describe the solution you'd like It would be nice to include "Not in Use" filter for media to be able to cleanup media from unused images.

schellenbergk avatar May 25 '23 18:05 schellenbergk

Yes this would be great! Trying to cleanup images that aren't being referenced to decrease my assets footprint.

JamesSingleton avatar Jul 15 '23 22:07 JamesSingleton

Hey @schellenbergk – I believe this is already possible by using the existing In Use filter and setting the value to False. This should show all assets that aren't being referenced elsewhere in your dataset.

Does this accomplish what you're after, or perhaps I'm misunderstanding the ask here?

robinpyon avatar Jul 17 '23 17:07 robinpyon

@robinpyon this accomplishes what I wanted at least 😅

JamesSingleton avatar Jul 17 '23 17:07 JamesSingleton

Wow that filter is more reliable than I am... Apparently I have uploaded duplicate photos for some reason/ some how...

JamesSingleton avatar Jul 18 '23 01:07 JamesSingleton

In Use = false starts to fail / timeout when there are large asset libraries eg 25GB+

ahbyass avatar Nov 18 '23 23:11 ahbyass