HDFC said it has invoked 50 lakh pledged Ansal Housing shares to recover outstanding debts from the developer.