Deleted warnings and events after update basis_of_records in occurrence_record with the new records.