@vgeannin You can’t delete data based on a value threshold. You can only delete data based on time, measurement, or tag. You have a few options to dealing with these errant points.
Query and write data with errant values filtered out to a new measurement
If you really need to delete these points, you can query all the data of our your current measurement, filter out the errant values, and write the filtered data to a new measurement. It would look something like this:
If all the errant points are off by a specific scale, you can query just those values, update them to account for the errant scale, and then write the updated points back to the same measurement. Points are uniquely identified by their timestamp, measurement, and tag set, so if those are the same, InfluxDB will update the existing points on write with the new field values. It would look something like this:
No, I changed the comparison operator in the filter from >= 4000 to <= 4000 so it filters out all the bad values. So you’re writing all the good data to the new measurement. Note, this doesn’t account for the other good data in that measurement with different tags/fields. Those would need to be moved to the new measurement as well. Once all the good data is moved to the new measurement, you would then delete the old measurement with the bad data.