The function removes data "greedily": all data that builds on the deleted
data is removed. For example, when data from data_control is removed
data in data_object that maps to this control batch is also removed.
The dependency structure works as follows: batch_keyword / batch_time ->
data_control -> data_object -> data_score -> data_doi.
After using remove_data
, run vacuum_data
to free-up unused memory in
the database file. Depending on the database size, vacuum_data
might
take some minutes for execution.