title: Disable NEW options in document library
body: <p>I need to disable new item creation (new document) and Connect to Outlook in a specific document library. </p>
  
  <p>I would like to remove the button completely if possible, but will settle for disabling it by eliminating the "Create a new document" dropdown as well as the on-click function of the New button itself. </p>
  
  <p>The code provided <a href="https://stackoverflow.com/questions/1166148/hide-new-actions-upload-settings-menus-in-sharepoint-lists-document-libra">here</a> does not perform these removals, no matter how I configure it using the "new document" or "new item" or "connect to outlook" menu item names in the function. All the others work fine but I cannot get these to go away. </p>
  
  <p>Any help is appreciated!</p>