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. . This is the function of ENSG00000205669 (ACOT6, acyl-CoA thioesterase 6).