
Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag storeYou're not missing the point of attributes - you've actually identified a key behavior that can be confusing! Let me explain what's happening and how to fix it.
According to the attribute limit documentation, attributes work differently than you might expect:
Your attribute count:
The key issue: Each unique path is counted once, no matter how often it's used. Removing a path from your attribute count requires deleting every piece of content on that path across all documents in your dataset - not just some documents.
So if you deleted a few documents but other documents still contain those same field paths, your attribute count won't decrease.
Here's what you need to do:
Before making any changes, run a full export:
sanity dataset export production production.tar.gzMonitor your attribute count using this URL:
https://<projectId>.api.sanity.io/v1/data/stats/<datasetName>
Look for fields.count.value (current count) and fields.count.limit (your limit).
You need to remove content from paths that are no longer needed. This might include:
The content must be removed from every document that contains those paths, including drafts (documents with drafts. prefix in their ID).
If you're still hitting limits, you may need to restructure your content model. Common issues that inflate attribute counts:
Check out the best practices section in the docs for detailed guidance on avoiding these pitfalls.
Hope this helps! Let me know if you need help identifying which paths are consuming your attributes.
Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.
Content operations
Content backend


The only platform powering content operations
By Industry


Tecovas strengthens their customer connections
Build and Share

Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag store