Hive now tracks when each app deployment was last used, helping you identify stale deployments that are candidates for retirement.
Query Stale Deployments
Use the new activeAppDeployments query to find deployments based on usage:
Filter Options
| Filter | Description |
|---|---|
name | Filter by deployment name (case-insensitive partial match) |
lastUsedBefore | Deployments last used before this timestamp |
neverUsedAndCreatedBefore | Deployments never used and created before this timestamp |
The date filters use OR semantics—deployments matching either condition are returned.
Automated Cleanup
For teams creating many deployments (e.g., one per PR), you can automate cleanup by combining the GraphQL API with the Hive CLI:
