removeLayout

It clears the map of APL layouts. To avoid memory leaks, this function should be called when the fragment rendering the APL documents is destroyed.