Catalyzes the hydrolysis of acyl-CoAs into free fatty acids and coenzyme A (CoASH), regulating their respective intracellular levels. Catalyzes the hydrolysis of phytanoyl-CoA and pristanoyl-CoA, two methyl-branched fatty acids derived from phytol, that enter the body via the diet. H2O + pristanoyl-CoA = 2,6,10,14-tetramethylpentadecanoate + CoA + H(+) H2O + phytanoyl-CoA = 3,7,11,15-tetramethylhexadecanoate + CoA + H(+) Lipid metabolism; fatty acid metabolism. Localization to the peroxisome is uncertain since the potential C-terminal peroxisome targeting signal found in the mouse ortholog is not perfectly conserved. Recombinant N-terminally GFP-tagged protein localizes to the cytosol. Belongs to the C/M/P thioester hydrolase family.