Remove unused buttons.