Create cleanup script for personal snippets
Noticed while investigating gitlab-org/gitlab#326624 (closed):
I was trying to reproduce this against the Staging and while I couldn't get the same error I also noticed that we accumulated a large amount of test snippets (25k+) so I wonder if this can contribute to the erroring? We do delete the resource after the test now but I guess it can fail at times and there were some historic test ones already. Project snippets are cleaned up automatically with a scheduled subgroup deletion script so I think we should implement something like that for personal snippets as well, both on Staging and Production.
-
Write a script to delete personal snippets - gitlab-org/gitlab!87335 (merged)
- [ ] Add a manual cleanup job to be run on demand - gitlab-org/quality/pipeline-common!186 (closed) To avoid duplication, this task was removed in favour of our generic resource cleanup that should take care of snippets on a weekly basis. The script can still be run on demand from local if necessary.