registry does not get cleaned up after disabling Registry for the project
Summary + Steps to reproduce
If you disable registry feature for a project and then use /opt/gitlab/embedded/bin/registry garbage-collect --dry-run=false /var/opt/gitlab/registry/config.yml the data will not get deleted. you can still enable the registry feature on the same project and the data is there again.
Expected behavior
After garbage collecting the registry it should also remove data from projects where the registry is disabled. Maybe add a warning to the registry-feature-checkbox that people know this can be dangerous. Maybe you could also add a button near the registry-feature-checkbox of the project that says "Delete all images of this project" if you don't like the automatic deletion.
Actual behavior
At the moment the docker images will never get deleted if you disable the feature. You cannot access the data but it is still using space.