removing items from right side of dock
I am unable to remove the folders, documents, and minimized windows are kept from the right side of the Dock. The only way I can do this is by clicking on them individually then closing them which is very tedious. I've read that I should be able to right click on them to remove but this just displays the name of the item. Neither can I drag them out of the dock.
MacBook Pro with Retina display, OS X Yosemite (10.10.1)