Open this page in the API Guide

Menu.deactivateAll Method

Marks all items and any sub-items as not active.