| 12 | |
| 13 | == How can I delete Shapefile? == |
| 14 | |
| 15 | [http://lists.osgeo.org/pipermail/gdal-dev/2009-June/020906.html Here] is related thread on the mailing list. |
| 16 | |
| 17 | Prior version 1.6 of GDAL/OGR it's only possible to remove Shapefile from filesystem using native API of user's operation system, for instance [http://opengroup.org/onlinepubs/007908775/xsh/unlink.html unlink()] function from [http://en.wikipedia.org/wiki/POSIX POSIX] or [http://msdn.microsoft.com/en-us/library/aa363915(VS.85).aspx DeleteFile()] from Microsoft [http://en.wikipedia.org/wiki/Win32 Windows API]. |
| 18 | |
| 19 | Since GDAL 1.6, it is possible to accomplish this task using [http://gdal.org/ogr/classOGRDataSource.html OGRDataSource::DeleteLayer()] method. |