Influx - drop the first and last rows/values from the table

This topic seems to be discussing the exact same problem: Removing first & last data points