Carboxypeptidase that cleaves terminal D-alanine from peptidoglycan in the mycobacterial cell wall. May cleave L-Lys-D-Ala and/or D-Ala-D-Ala peptide bonds. Exerts important effects on mycobacterial cell morphology and cell division. Overexpression in M. smegmatis leads to elongated cells and promotes the formation of increased numbers of Z-rings. Belongs to the peptidase S13 family.