check : http://support.microsoft.com/kb/926812
I used a different method:
- Open the Master gallery in Explorer view
- Create a Directory named "Delete"
- Cut all the un-wanted Master Pages and paste it inside the "Delete" directoty
- Delete the "Delete" Directory
And you got rid of all the unwanted pages .