solgenomics / sgn

The code behind the Sol Genomics Network, Cassavabase and other Breedbase websites
https://solgenomics.net
MIT License
66 stars 35 forks source link

Deleting images #5021

Open ch728 opened 1 month ago

ch728 commented 1 month ago

On /breeders/trial/, will this delete images?

image

If not, how do I purge associated images? It seems like images are not treated the same way as other traits; however, I have a lot of different image traits that I collect with Fieldbook. Sometimes I realize a mistake and It's easier to delete the whole trial and phenotypic data and reupload to fix. I worry that images aren't being updated or deleted however.

lukasmueller commented 1 month ago

Short answer is no, but it will delete the association of the images with the plot/plants/etc. Technically, images are never deleted. You can delete the database entry of an image, but it will still be on disk.