You can use the brand properties to prune the toolbar's menu items for all users, or just for anonymous users. To do this, use one of the following brand properties:

and list the ID attributes of the menu items (examples below) to make a jQuery-style comma-separated list of selectors.

Toolbar: ID Attributes

ID Attribute Icon possible sub-menu items
#pin
#user-menu #update-status-item, #personal-space-item, #my-profile-item, #my-network-item, #view-history-item, #calendar, #screen-size-item, #logout-item
#admin-menu #admin-console-item, #dashboard-item, #browse-space-item, #space-brand-item, #space-settings-item, #page-design-editor-item
#people-menu  
#content-menu #view-blog-item, #add-bookmark-item, #configure-rss-feed-item, #space-directory-item
#watch-menu #start-stop-watching-page-item, #start-stop-watching-space-item, #view-watches-item, #manage-watchers-item
#flag-menu #add-to-favorites-item, #view-favorites-item
#share-content-menu  
#page-menu #view-attachments-item, #link-to-this-page-item, #incoming-links-item, #copy-page-item, #move-page-item, #remove-page-item, #restrict-page-item, #version-history-item, #edit-entire-page-item, #edit-in-word-item, #view-in-hierarchy-link-item, #action-export-pdf-link-item, #action-export-word-link-item, #import-word-doc-item
#expando  
#add #add-page-item, #add-blog-item, #add-attachments-item
#view-drafts-item  
#search