I have a file, polygons.gpkg
that I am using in QGIS. Its original file size is 48MB.
When I do nothing except delete a handful of the attribute table's fields, I expect the file size to decrease. However, it instead increases to 85MB.
After deleting the fields, if I export as a new gpkg (Export > Save Features As), the new file is only 38MB. This result makes sense to me.
Is there a way to "clean up" whatever extra data is getting stored in the original polygons.gpkg
so that its size on disk is reduced? That would be a more convenient solution than exporting anew...