also remove layers when deleted