Catalysis of the reaction: an acyl-coenzyme A or its derivatives + H2O = adenosine 3',5'-bisphosphate + an acyl-4'-phosphopantetheine + 2 H+. This reaction can also use coenzyme A as a substrate.
CoA pyrophosphatase activity