---
title: "Remove some records (test plots) from existing sqlite .db file"
url: "https://openforis.support/questions/553/remove-some-records-test-plots-from-existing-sqlite-db-file"
tags: ["collectearth"]
status: "answered"
score: 0
answer_count: 2
asked: "2016-06-08T04:51:10"
last_activity: "2021-08-25T09:54:11"
source: "Open Foris Support - Q&A Forum"
license: "Copyright Open Foris, 2026. Some rights reserved under creative commons license."
---

# Remove some records (test plots) from existing sqlite .db file

Asked by haraguchi on 2016-06-08

We would like to remove some records from existing sqlite .db file.
Could you please explain how to implement this removing?


## Answer (score 0, by Open Foris on 2016-06-22)

Link: https://openforis.support/questions/553/remove-some-records-test-plots-from-existing-sqlite-db-file/568

Dear Haraguchi,

As of now there is no easy way to do this, we will be adding a function to do this in coming versions,

Right now, as we don't have a better way, you will need to install the "**[SQLite Database Browser][1]**" application so that you can remove the records directly from the database.

Open the application and then open the Collect Earth database ( located in the file *C:\Users\SanchezPausDiaz\AppData\Roaming\CollectEarth\collectEarthDatabase.db* )

Once you open the database find the ID of the survey in the **ofc_survey** table.

Then you can run the query : 

    delete from ofc_record where of_survey_id = 1 and key1=PLOT_ID

Substitute PLOT_ID with the ID of the record you want to remove.

![alt text][2]


![alt text][3]


  [1]: http://sqlitebrowser.org/
  [2]: http://www.openforis.org/support/upfiles/SQLite_Database_Browser_2.0_b1_2016-06-22_06-46-32.png
  [3]: http://www.openforis.org/support/upfiles/SQLite_Database_Browser_2.0_b1_2016-06-22_06-48-12.png


## Answer (score 0, by Open Foris on 2021-08-25)

Link: https://openforis.support/questions/553/remove-some-records-test-plots-from-existing-sqlite-db-file/3217

For a newer and improved function to delete plots please see the answer to [THIS QUESTION IN THE FORUM][1]!


  [1]: https://www.openforis.support//questions/1901/deleting-plots-from-analysis
