Open this page in the API Guide

Layer.dispose Method