Removes thioester-linked fatty acyl groups such as palmitate from modified cysteine residues in proteins or peptides during lysosomal degradation. H2O + S-hexadecanoyl-L-cysteinyl-[protein] = H(+) + hexadecanoate + L-cysteinyl-[protein] Belongs to the palmitoyl-protein thioesterase family.