purge unused layers

 From:  okapi
3774.3 
as always, I am amazed at how quick you are Michael!
Thanks a lot,