remove unused patterns/bundles/code