Hi, It’s been a while…
In a community project for volunteers I encounter a problem having the child features (in this case more then one picture for each parent feature) not being deleted in the DCIM folder/cloud. The project works with a relation to a separate table where the image paths are shown.
The project consists of a *.qgs project, a *.gpkg container, a .QfieldSync folder, a DCIM folder and a cloud_attachment folder. All these data are in the same folder as the *.qgs project.
In other words, I can delete parent features in QField and QGis and the child features will be deleted but the (child) pictures persists in the DCIM folder.
I did some research (*See list at the end) but I’m stuck…
1/ The relationship between parent and child layer was set correctly (using UUID) as ‘composition’. UUID was set as unique identifier.
2/ When I delete the parents on desktop (Windows 11 Enterprise and/or Linux Mint), QGis Tells me that it will delete 121 parents and 110 childs. That’s fine!
3/ In the configuration of the plugin QFieldSync all is set correctly
4/ Child table with pictures in has 233 features before deleting and 123 after deleting
5/ But in the DCIM local map of the QFieldCloud project map on desktop nothing changes… In other words, the pictures (‘childs’) are not deleted.
6/ If I would sync now from desktop to cloud, no pictures will be deleted…
7/ I think there is a problem with the path in the QGis project (lay-out form) to the local project map and I tried different options on the windows pc
- C:\Users\struelma\QField\cloud\Vrijwilligers_Miradal_v1a
- C:\Users\struelma\QField\cloud\Vrijwilligers_Miradal_v1a + ‘/DCIM’
- C:\Users\struelma\QField\cloud\Vrijwilligers_Miradal_v1a + ‘\DCIM’
- @project_home + ‘/DCIM’
- @project_home + ‘\DCIM’
8/ Because the photos are not deleted in the DCIM map, they are of course not deleted in the cloud either.. When I manually delete 3 random pictures in the DCIM map, they are deleted in the cloud
*List of some related issues
- Attachment widget
- Search results for ‘DCIM’ - QField community
- Photos not synchronising from Qfield to Cloud - Ask the Community - QField community (!)
Does anyone see the cause of the problem?












