<div dir="ltr">I've got a couple of questions here - I know this is not an official support channel, but wondered if anyone could take a look, particularly at the first one, which I will reproduce here. Thanks in advance.<div><br></div><div><a href="https://gis.stackexchange.com/questions/339011/gdal-delete-geopackage-layer">https://gis.stackexchange.com/questions/339011/gdal-delete-geopackage-layer</a> </div><div><br></div><div>This seems like it ought to be straightforward:<br></div><br>from osgeo import gdal<br>gpkg = gdal.OpenEx('path_to_gpk',gdal.OF_VERBOSE_ERROR,allowed_drivers=['GPKG'])<br>error = gpkg.DeleteLayer(0)<br>After running this error is always a OGRERR_FAILURE. The geopackage has been created by QGIS so I would have thought should be standard.<br><br>Can't see any way to debug further into the GDAL calls apart from a GDB session, which I might try later.<div><br></div><div>-----------------------------------------------------------<br><div><a href="https://gis.stackexchange.com/questions/338190/specify-open-options-in-datasource">https://gis.stackexchange.com/questions/338190/specify-open-options-in-datasource</a>  <br></div></div></div>