This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Can you delete all data of a country from Nominatim local database?

1

I was able to succesfully install Nominatim locally and now want to get all the data for addresses and cities using it. The problem is i don't have have enough space to hold a large quantity of data for multiple countries. So i want to import a data, get all the information I need and then delete it and import new data. I know you can update the database with new data using update.php.

So is there a safe clean way to delete data of a country?

asked 28 Nov '18, 07:56

Muntean%20Octavian's gravatar image

Muntean Octa...
31223
accept rate: 0%


One Answer:

2

Data is split in 300 tables. It's easier to delete the postgresql database and import the next country.

answered 28 Nov '18, 12:02

mtmail's gravatar image

mtmail
4.8k1574
accept rate: 27%

Source code available on GitHub .