delete_full_measurement

specatalog.helpers.full_entry.delete_full_measurement(base_dir, ms_id)[source]

Delete a complete measurement entry (with the id ms_id) including database and file system operations.

The deletion process is performed in an atomic manner with respect to the database. Only if the database and the file deletion can be carried out without errors the changes are committed to the database.

The following steps are executed: 1) Deletion of the database entry 2) Deletion of the measurement directory

Parameters:
  • base_dir (Path) – Base directory of the measurement archive.

  • ms_id (int) – ID of the measurement.

Returns:

Result object indicating success or failure of the creation process. In case of success, the former measurement ID is provided. In case of failure, the raised exception is included.

Return type:

CreateMeasurementResult