The *.aux.xml
files are called persistent auxiliary metadata (PAM), and are created by GDAL to cache image statistics and speed up subsequent reads. If you want to disable their creation through QGIS, you can go into Settings > Options > System > Environment and add a new variable GDAL_PAM_ENABLED=NO
. QGIS will need to be restarted for the change to take effect.
Note that setting GDAL_PAM_PROXY_DIR
will not affect creation of *.aux.xml files in most cases, as explained in the GDAL docs:
GDAL_PAM_PROXY_DIR=value: Directory to which .aux.xml files will be written when accessing files from a location where the user does not have write permissions. Has no effect when accessing files from locations where the user does have write permissions.