Remove separator and last opened apps from the dock In my Mac on the Dock is a separator which keeps the last open programs. How I can remove it? I didn't find any place in the Dock settings...

I don't want to see any apps on the right of the separator.
Drag the folders away from the Dock and wait until the cursor changes to indicate they will be removed, and let go. You have to do this one at a time for folder stacks as Monomeeth says. 

To prevent minimized windows from showing to the right of the separator, go to System Preferences > Dock and check the “minimize windows into application icon” setting.