deleteTrial#
- deleteTrial(conn, databaseTableName, serialNumber, isForceDelete)#
Delete trial folders and database rows for given serial numbers.
Removes both the file system directories and database entries for the specified trials. Prompts for confirmation unless forced deletion is enabled.
- Parameters:
conn (
database.postgre.connection) – Open PostgreSQL database connectiondatabaseTableName (
string) – Database table name containing trial recordsserialNumber (
double) – Trial serial numbers to delete (can be array)isForceDelete (
logical, optional) – Skip interactive confirmation if true (default: false)
Example:
conn = createWriter("myDatabase"); deleteTrial(conn, "BecExpTrial", [1234, 1235], true);