create a new folder in the desktop, name corresponding to what applications you will be removing from the doc

go to applications folder, find the applications, create an alias move aliase to the newly created folder

move the folder to the folder section of the dock

remove the other aliase from the dock