Remove measurements...
 
Notifications
Clear all

[Solved] Remove measurements data  


kppc
 kppc
(@kppc)
Eminent Member
Joined: 6 months ago
Posts: 28
Topic starter  

We are repurposing one of our Mycodo setups to control a new hydroponics system. The setup is current and all the sensors will remain with the system. Wondering if the measurements data from the old system can be removed. It would be nice for the new system to display only new data.


Quote
Kyle Gabriel
(@kylegabriel)
Member Admin
Joined: 6 years ago
Posts: 429
 

This should be easily accomplished by referencing this Mycodo wiki article to start influx and open the mycodo database, and this answer about how to delete all measurements. Merely replace the last two commands in the wiki (SELECT and DELETE) with the answer's DROP command.

influx
use mycodo_db
DROP SERIES FROM /.*/

Mycodo Developer


ReplyQuote
kppc
 kppc
(@kppc)
Eminent Member
Joined: 6 months ago
Posts: 28
Topic starter  

Thanks, that worked perfectly


ReplyQuote