7.x
Database size keeps increasing over time.
To batch delete resources, metrics and measures, you can use the Gnocchi CLI .
For example, to delete resources and all their associated metrics that were terminated 60 days ago, run the following command:
#openstack metric resource batch delete "ended_at < '-30days'"