If you add a layer with dependencies and then delete one of its dependencies the build will fail, just as you expected. I think there should be a note/warning, after you delete the dependency, telling you this will cause errors.