Hi is there any way to minimize left menu programatically?

Hi is there any way to minimize left menu programatically?