(calibration_id: local_types.CalibrationID)
Given a labware's hash, delete the file and remove it from the index file.

    :param calibration_id: labware hash
Given a labware's hash, delete the file and remove it from the index file.
Given a labware s hash delete the file and remove it from the index file .
def delete_offset_file(calibration_id: local_types.CalibrationID):
    """
    Given a labware's hash, delete the file and remove it from the index file.

    :param calibration_id: labware hash
    """
    offset_path = config.get_opentrons_path("labware_calibration_offsets_dir_v2")
    offset = offset_path / f"{calibration_id}.json"
    try:
        _remove_offset_from_index(calibration_id)
        offset.unlink()
    except FileNotFoundError:
        pass
def delete_offset_file ( calibration_id : local_types . CalibrationID ) : offset_path = config . get_opentrons_path ( "labware_calibration_offsets_dir_v2" ) offset = offset_path / f"{calibration_id}.json" try : _remove_offset_from_index ( calibration_id ) offset . unlink ( ) except FileNotFoundError : pass