In this paper we generalize a theorem of M. Hilsum and G. Skandalis stating that the class="mathmlsrc">class="formulatext stixSupport mathImg" data-mathURL="/science?_ob=MathURL&_method=retrieve&_eid=1-s2.0-S0393044016300547&_mathId=si1.gif&_user=111111111&_pii=S0393044016300547&_rdoc=1&_issn=03930440&md5=82cd2e14591605661a989e1a5b5bc416" title="Click to view the MathML source">C∗class="mathContainer hidden">class="mathCode">-algebra of any foliation of nonzero dimension is stable. Precisely, we show that the class="mathmlsrc">class="formulatext stixSupport mathImg" data-mathURL="/science?_ob=MathURL&_method=retrieve&_eid=1-s2.0-S0393044016300547&_mathId=si1.gif&_user=111111111&_pii=S0393044016300547&_rdoc=1&_issn=03930440&md5=82cd2e14591605661a989e1a5b5bc416" title="Click to view the MathML source">C∗class="mathContainer hidden">class="mathCode">-algebra of a Lie groupoid is stable whenever the groupoid has no orbit of dimension zero. We also prove an analogous theorem for singular foliations for which the holonomy groupoid as defined by I. Androulidakis and G. Skandalis is not Lie in general.