How to Delete All Assets That Aren't Used After Development

2 replies
Last updated: Sep 27, 2021
During development I needed to add a lot of assets that are not necessary any longer. Is there a way to delete all assets that aren't currently used?
Sep 27, 2021, 10:17 AM
user T
, this snippet should let you do exactly that ๐Ÿ™‚
Sep 27, 2021, 10:33 AM
Works like a charm. Thanks!
Sep 27, 2021, 10:34 AM

Sanityโ€“ build remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?