In order to prepare a receptor file for docking, we need to remove the ligand associated with the protein; as in the pdb files from Protein Data Bank, coordinates for ligand is also mentioned. So, how to remove the ligand?
You can use pymol by clicking "S" at the bottom, in the pymol viewer select the ligand, the ligand will be highlight with different color then right click on it and choose remove. The ligand will automatically remove from the protein.
No need for a molecular graphics program: PDB files are plain text files . . . and those from the Protein Data Bank contain a lot of very useful information besides the atomic coordinates.