Palmitoyl protein thioesterases are enzymes (EC 3.1. 2.22) that remove thioester-linked fatty acyl groups such as palmitate from modified cysteine residues in proteins or peptides during lysosomal degradation.