Remove the whole menu in the admin

add_action('admin_head', 't5_hide_menu');
function t5_hide_menu()
{
    $GLOBALS['menu'] = array();
    ?>
<style>#adminmenuback,#adminmenuwrap{display:none !important}
#wpcontent, #footer{margin-left:0 !important}</style>
<?php
}

Now I want to know: why? 🙂