After removing and then purging hplip, the __pycache__ directories remain. # apt purge hplip Reading package lists... Done Building dependency tree... Done Reading state information... Done The following packages will be REMOVED: hplip* 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] y (Reading database ... 358577 files and directories currently installed.) Purging configuration files for hplip (3.22.10+dfsg0-2) ... Processing triggers for dbus (1.14.10-1~deb12u1) ... # ls -R /usr/share/hplip/ /usr/share/hplip/: base copier fax installer pcard prnt __pycache__ scan ui5 /usr/share/hplip/base: pexpect __pycache__ /usr/share/hplip/base/pexpect: __pycache__ /usr/share/hplip/base/pexpect/__pycache__: /usr/share/hplip/base/__pycache__: /usr/share/hplip/copier: __pycache__ /usr/share/hplip/copier/__pycache__: /usr/share/hplip/fax: __pycache__ /usr/share/hplip/fax/__pycache__: /usr/share/hplip/installer: __pycache__ /usr/share/hplip/installer/__pycache__: /usr/share/hplip/pcard: __pycache__ /usr/share/hplip/pcard/__pycache__: /usr/share/hplip/prnt: __pycache__ /usr/share/hplip/prnt/__pycache__: /usr/share/hplip/__pycache__: /usr/share/hplip/scan: __pycache__ /usr/share/hplip/scan/__pycache__: /usr/share/hplip/ui5: __pycache__ /usr/share/hplip/ui5/__pycache__: Scott K