Open this page in the API Guide

CommandService.reset Method

Reset the undo stack.