Last active
January 14, 2022 20:41
-
-
Save gerritjandebruin/16badc46361ba2521d2e94160d69bd22 to your computer and use it in GitHub Desktop.
Drop measurements in Influxdb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in 'lightlevel' 'lumi_lumi' 'multisensor' 'rwl021' 'batterij' 'verbinding' 'herstart' 'notificatie' 'oplader' 'tradfri' 'water' 'wifi_signal' 'relais' 'on_off' | |
do | |
influx -host xxx -username homeassistant -password xxx -port 8086 --execute 'show measurements' --database=homeassistant | grep $i | xargs -I{} influx -host xxx -username homeassistant -password xxx -port 8086 --execute 'drop measurement "{}"' --database=homeassistant | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment