We are using EFS storage for artifact pipelines. We have two environments: the staging environment and the production environment.
We have deleted the pipeline old builds under the artifactory folder, but we can still see the history in the GoCD UI.
How can we permanently clean up all pipeline history and VSM at the database level?
Could you please suggest a way to clean up the history while keeping only the last 50 builds, and deleting the rest from the pipeline artifacts and cache?