Skip to content
vjrj edited this page May 27, 2019 · 8 revisions

Some info about deleting data

Removing records of some resource from cassandra & solr

Imagine that you want to remove the occurrences of some new dr0 you have created for later ingestion. Easy:

biocache delete-records -dr dr0

Images bulk deletion

biocache-store delete-records task doesn't delete media in the image service. Furthermore ingest task, only re-process images that don't exist in the image service. So, sometimes you need to delete images of some resource.

For this, authenticated via CAS and with Admin role you can do advanced searches (for instance images with height == 0 of some data resource) and select all of them and later delete it.

Advanced search of images

So, the general procedure is, first select images, then go on selected images near the trolley (top right). On this new page you have a button "Admin Functions", then use "Deleted images".

Removing selected images

How can delete all data from a demo site?

Depending on the use of your demo you'll need to at least:

  1. For your collectory service, stop tomcat and mysql, and clear mysql database collectory
  2. Stop solr & clear solr index under /data
  3. Stop cassandra and clear cassandra database (see this task in cassandra ansible role)

Other databases and services to check (image service, species list service, spatial, ...).

Clone this wiki locally