Feature Request: Enhanced Project Deletion API with Cascading Image Repository Removal
Problem to solve
The current process for deleting GitLab projects is cumbersome, especially when it involves image repositories. Users must manually ensure that all image repositories are deleted or scheduled for deletion by the garbage collector before they can delete the project. This multi-step process is inefficient and time-consuming, particularly for customers using automated CI/CD pipelines that frequently create and destroy projects.
Proposal
Introduce an API enhancement that allows users to delete projects with a single API call, which also handles the deletion of associated image repositories. This could be implemented as a cascade_delete: true flag in the project deletion API call, which would signal that all linked image repositories should be immediately deleted alongside the project.
Intended users
CI/CD engineers and developers who manage dynamic environments with frequent creation and deletion of projects would benefit from this feature. This capability would streamline their workflows and reduce script complexity.