Disable / remove repository added by other applied script?

Is it possible to disable / remove a repository applied by some other script / plugin? For example, I have a company-wide script that defines our repository and it is applied from most of our projects. However, for some reason, one of the projects should not use our internal repo, but it would still be nice to be able to apply the common build script. Something like:

repositories {

remove ‘some id’ }

or similar?


project.repositories is a mutable List. You can use the standard methods to remove something.

Of course, thanks!