This is a fucntion that takes in a table of records and deletes everything in the file. Please do not run this function without 1) Backing Up Bety 2) Checking the the file only contains entries to be deleted.

For more information on how to use this function see the "Pre-release-database-cleanup" script in the 'vignettes' folder or look at the README

cull_database_entries(
  table = NULL,
  outdir,
  file_name = NULL,
  con,
  machine_id = NULL,
  table_name = NULL
)

Arguments

table

data frame containing records to be deleted. Specify either this or `file_name`

outdir

Directory from which the file will be read, and where the delete_log_FILE_NAME will be read to

file_name

The name of the file being read in. Specify either this or `table`

con

connection the the bety database

machine_id

Optional id of the machine that contains the bety entries.

table_name

database table from which to delete

Author

Tempest McCabe